Index: trunk/phase3/includes/installer/DatabaseUpdater.php |
— | — | @@ -250,6 +250,10 @@ |
251 | 251 | |
252 | 252 | $this->setAppliedUpdates( $wgVersion, $this->updates ); |
253 | 253 | |
| 254 | + if ( isset( $what['stats'] ) ) { |
| 255 | + $this->checkStats(); |
| 256 | + } |
| 257 | + |
254 | 258 | if ( isset( $what['purge'] ) ) { |
255 | 259 | $this->purgeCache(); |
256 | 260 | |
— | — | @@ -257,9 +261,6 @@ |
258 | 262 | $this->rebuildLocalisationCache(); |
259 | 263 | } |
260 | 264 | } |
261 | | - if ( isset( $what['stats'] ) ) { |
262 | | - $this->checkStats(); |
263 | | - } |
264 | 265 | } |
265 | 266 | |
266 | 267 | /** |
— | — | @@ -562,7 +563,7 @@ |
563 | 564 | * Check the site_stats table is not properly populated. |
564 | 565 | */ |
565 | 566 | protected function checkStats() { |
566 | | - $this->output( "Checking site_stats row..." ); |
| 567 | + $this->output( "...site_stats is populated..." ); |
567 | 568 | $row = $this->db->selectRow( 'site_stats', '*', array( 'ss_row_id' => 1 ), __METHOD__ ); |
568 | 569 | if ( $row === false ) { |
569 | 570 | $this->output( "data is missing! rebuilding...\n" ); |