Build preload l10ncache after running hooks, not before, so extension changes (by...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 8 Mar 2010 14:43:02 +0000 (14:43 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 8 Mar 2010 14:43:02 +0000 (14:43 +0000)
includes/LocalisationCache.php

index 8ceb499..12925b6 100644 (file)
@@ -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 ) {