Index: trunk/phase3/maintenance/parserTests.inc |
— | — | @@ -815,6 +815,9 @@ |
816 | 816 | |
817 | 817 | # Update certain things in site_stats |
818 | 818 | $db->insert( 'site_stats', array( 'ss_row_id' => 1, 'ss_images' => 1, 'ss_good_articles' => 1 ) ); |
| 819 | + |
| 820 | + # Reinitialise the LocalisationCache to match the database state |
| 821 | + Language::getLocalisationCache()->unloadAll(); |
819 | 822 | } |
820 | 823 | |
821 | 824 | /** |
Index: trunk/phase3/includes/LocalisationCache.php |
— | — | @@ -639,6 +639,15 @@ |
640 | 640 | } |
641 | 641 | |
642 | 642 | /** |
| 643 | + * Unload all data |
| 644 | + */ |
| 645 | + public function unloadAll() { |
| 646 | + foreach ( $this->initialisedLangs as $lang => $unused ) { |
| 647 | + $this->unload( $lang ); |
| 648 | + } |
| 649 | + } |
| 650 | + |
| 651 | + /** |
643 | 652 | * Add messages to the cache, from an extension that has not yet been |
644 | 653 | * migrated to $wgExtensionMessages or the LocalisationCacheRecache hook. |
645 | 654 | * Called by deprecated function $wgMessageCache->addMessages(). |