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:
parent
8f39d2af96
commit
e46c9a91fd
1 changed files with 3 additions and 3 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue