Fix r87731: update site stats only when explicitly asked to do so
authorMax Semenik <maxsem@users.mediawiki.org>
Sat, 3 Sep 2011 10:23:47 +0000 (10:23 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Sat, 3 Sep 2011 10:23:47 +0000 (10:23 +0000)
includes/installer/DatabaseUpdater.php
includes/installer/OracleUpdater.php
maintenance/update.php

index 656ca9d..38bbd42 100644 (file)
@@ -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();
                }
        }
index 18ef7a4..ebc1518 100644 (file)
@@ -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;' );
index ef60a77..3afb562 100644 (file)
@@ -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';
                }