Build preload l10ncache after running hooks, not before, so extension changes (by e.g. LocalisationUpdate) to preloaded messages get picked up.

This commit is contained in:
Roan Kattouw 2010-03-08 14:43:02 +00:00
parent 8f39d2af96
commit e46c9a91fd

View 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 ) {