$this->setAppliedUpdates( $wgVersion, $this->updates );
+ if ( isset( $what['stats'] ) ) {
+ $this->checkStats();
+ }
+
if ( isset( $what['purge'] ) ) {
$this->purgeCache();
$this->rebuildLocalisationCache();
}
}
- if ( isset( $what['stats'] ) ) {
- $this->checkStats();
- }
}
/**
* Check the site_stats table is not properly populated.
*/
protected function checkStats() {
- $this->output( "Checking site_stats row..." );
+ $this->output( "...site_stats is populated..." );
$row = $this->db->selectRow( 'site_stats', '*', array( 'ss_row_id' => 1 ), __METHOD__ );
if ( $row === false ) {
$this->output( "data is missing! rebuilding...\n" );