X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FinitSiteStats.php;h=49e0e9d71e582bdbd42b7a5432315eccc526128b;hb=64d5264dc58fbede0e971fd813b8ba90887d9ddb;hp=c368c3ff3e095af2d356779f30f5cfdf00ffa938;hpb=c0cdf0e91186728c8e283bbcc977d6831f4b93d1;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" ); } }