X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FinitSiteStats.php;h=49e0e9d71e582bdbd42b7a5432315eccc526128b;hb=af90f0739abd7e111935eca13066c3d10690381e;hp=c368c3ff3e095af2d356779f30f5cfdf00ffa938;hpb=2f43254f35c817a6f36a74a54ccf49b11d7a6e22;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/initSiteStats.php b/maintenance/initSiteStats.php index c368c3ff3e..49e0e9d71e 100644 --- a/maintenance/initSiteStats.php +++ b/maintenance/initSiteStats.php @@ -69,21 +69,19 @@ class InitSiteStats extends Maintenance { $this->output( "{$views}\n" ); } + if ( $this->hasOption( 'update' ) ) { + $this->output( "\nUpdating site statistics..." ); + $counter->refresh(); + $this->output( "done.\n" ); + } + if ( $this->hasOption( 'active' ) ) { - $this->output( "Counting active users..." ); + $this->output( "\nCounting and updating active users..." ); $active = SiteStatsUpdate::cacheUpdate( wfGetDB( DB_MASTER ) ); $this->output( "{$active}\n" ); } - $this->output( "\nUpdating site statistics..." ); - - if ( $this->hasOption( 'update' ) ) { - $counter->update(); - } else { - $counter->refresh(); - } - - $this->output( "done.\n" ); + $this->output( "\nDone.\n" ); } }