Add unit test for bug 32888
[lhc/web/wiklou.git] / maintenance / initStats.php
index 9dd2721..eab9c8d 100644 (file)
@@ -63,7 +63,7 @@ class InitStats extends Maintenance {
 
                if ( $this->hasOption( 'active' ) ) {
                        $this->output( "Counting active users..." );
-                       $active = SiteStatsUpdate::cacheUpdate();
+                       $active = SiteStatsUpdate::cacheUpdate( wfGetDB( DB_MASTER ) );
                        $this->output( "{$active}\n" );
                }
 
@@ -80,4 +80,4 @@ class InitStats extends Maintenance {
 }
 
 $maintClass = "InitStats";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );