* (bug 21006) updateArticleCount.php --update now works again
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 5 Oct 2009 19:12:38 +0000 (19:12 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 5 Oct 2009 19:12:38 +0000 (19:12 +0000)
maintenance/updateArticleCount.php

index 51825de..d2776e5 100644 (file)
@@ -43,7 +43,7 @@ class UpdateArticleCount extends Maintenance {
        
                if( $result !== false ) {
                        $this->output( "found {$result}.\n" );
-                       if( isset( $options['update'] ) && $options['update'] ) {
+                       if( $this->hasOption( 'update' ) ) {
                                $this->output( "Updating site statistics table... " );
                                $dbw = wfGetDB( DB_MASTER );
                                $dbw->update( 'site_stats', array( 'ss_good_articles' => $result ), array( 'ss_row_id' => 1 ), __METHOD__ );