From e46c9a91fd9ab6f9e1e41ffbfb31551a92b95307 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 8 Mar 2010 14:43:02 +0000 Subject: [PATCH] Build preload l10ncache after running hooks, not before, so extension changes (by e.g. LocalisationUpdate) to preloaded messages get picked up. --- includes/LocalisationCache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index 8ceb49914f..12925b68cd 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -586,9 +586,6 @@ class LocalisationCache { $allData['defaultUserOptionOverrides'] = array(); } - # Set the preload key - $allData['preload'] = $this->buildPreload( $allData ); - # Set the list keys $allData['list'] = array(); foreach ( self::$splitKeys as $key ) { @@ -603,6 +600,9 @@ class LocalisationCache { 'Check that your languages/messages/MessagesEn.php file is intact.' ); } + # Set the preload key + $allData['preload'] = $this->buildPreload( $allData ); + # Save to the process cache and register the items loaded $this->data[$code] = $allData; foreach ( $allData as $key => $item ) { -- 2.20.1