From f86947bfe7662f3c05db7a56a9a04b9f8f41d8e5 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sat, 3 Sep 2011 10:23:47 +0000 Subject: [PATCH] Fix r87731: update site stats only when explicitly asked to do so --- includes/installer/DatabaseUpdater.php | 4 ++-- includes/installer/OracleUpdater.php | 2 +- maintenance/update.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index 656ca9d6a2..38bbd42a7c 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -189,7 +189,7 @@ abstract class DatabaseUpdater { * * @param $what Array: what updates to perform */ - public function doUpdates( $what = array( 'core', 'extensions', 'purge' ) ) { + public function doUpdates( $what = array( 'core', 'extensions', 'purge', 'stats' ) ) { global $wgVersion; $what = array_flip( $what ); @@ -206,7 +206,7 @@ abstract class DatabaseUpdater { if( isset( $what['purge'] ) ) { $this->purgeCache(); } - if ( isset( $what['core'] ) ) { + if ( isset( $what['stats'] ) ) { $this->checkStats(); } } diff --git a/includes/installer/OracleUpdater.php b/includes/installer/OracleUpdater.php index 18ef7a4716..ebc15180ab 100644 --- a/includes/installer/OracleUpdater.php +++ b/includes/installer/OracleUpdater.php @@ -157,7 +157,7 @@ class OracleUpdater extends DatabaseUpdater { * * @param $what array */ - public function doUpdates( $what = array( 'core', 'extensions', 'purge' ) ) { + public function doUpdates( $what = array( 'core', 'extensions', 'purge', 'stats' ) ) { parent::doUpdates( $what ); $this->db->query( 'BEGIN fill_wiki_info; END;' ); diff --git a/maintenance/update.php b/maintenance/update.php index ef60a77e04..3afb562ed5 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -110,7 +110,7 @@ class UpdateMediaWiki extends Maintenance { $shared = $this->hasOption( 'doshared' ); - $updates = array('core','extensions'); + $updates = array( 'core', 'extensions', 'stats' ); if( !$this->hasOption('nopurge') ) { $updates[] = 'purge'; } -- 2.20.1