From: Alexandre Emsenhuber Date: Mon, 5 Oct 2009 19:12:38 +0000 (+0000) Subject: * (bug 21006) updateArticleCount.php --update now works again X-Git-Tag: 1.31.0-rc.0~39380 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ef4a8e4fe536316fd051849c64ca242a7b5f3edc;p=lhc%2Fweb%2Fwiklou.git * (bug 21006) updateArticleCount.php --update now works again --- diff --git a/maintenance/updateArticleCount.php b/maintenance/updateArticleCount.php index 51825ded2b..d2776e58ba 100644 --- a/maintenance/updateArticleCount.php +++ b/maintenance/updateArticleCount.php @@ -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__ );