Don't delete images in foreign repositories. Also fixed image counter downwards drift...
[lhc/web/wiklou.git] / maintenance / updateArticleCount.php
index 92ae0ee..03c7939 100644 (file)
@@ -27,7 +27,7 @@ if( $result !== false ) {
        echo( "found {$result}.\n" );
        if( isset( $options['update'] ) && $options['update'] ) {
                echo( "Updating site statistics table... " );
-               $dbw =& wfGetDB( DB_MASTER );
+               $dbw = wfGetDB( DB_MASTER );
                $dbw->update( 'site_stats', array( 'ss_good_articles' => $result ), array( 'ss_row_id' => 1 ), __METHOD__ );
                echo( "done.\n" );
        } else {