Fix bug when using Mediawiki Installer.
[lhc/web/wiklou.git] / maintenance / deleteImageMemcached.php
index 6af0e3a..7ec9953 100644 (file)
@@ -19,7 +19,7 @@ class DeleteImageCache {
 
                ini_set( 'display_errors', false );
 
-               $dbr =& wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
 
                $res = $dbr->select( 'image',
                        array( 'img_name' ),
@@ -46,7 +46,7 @@ class DeleteImageCache {
        function getImageCount() {
                $fname = 'DeleteImageCache::getImageCount';
 
-               $dbr =& wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
                return $dbr->selectField( 'image', 'COUNT(*)', array(), $fname );
        }
 }
@@ -57,4 +57,4 @@ $report = (int)$options['report'];
 
 $dic = new DeleteImageCache( $until, $sleep, $report );
 $dic->main();
-?>
+