diff options
Diffstat (limited to 'includes/language/LocalisationCache.php')
-rw-r--r-- | includes/language/LocalisationCache.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/includes/language/LocalisationCache.php b/includes/language/LocalisationCache.php index f48b90bbc1ad..b27e44d5f655 100644 --- a/includes/language/LocalisationCache.php +++ b/includes/language/LocalisationCache.php @@ -985,6 +985,11 @@ class LocalisationCache { } } + if ( !isset( $allData['rtl'] ) ) { + throw new MWException( __METHOD__ . ': Localisation data failed validation check! ' . + 'Check that your languages/messages/MessagesEn.php file is intact.' ); + } + # Add cache dependencies for any referenced globals $deps['wgExtensionMessagesFiles'] = new GlobalDependency( 'wgExtensionMessagesFiles' ); // The 'MessagesDirs' config setting is used in LocalisationCache::getMessagesDirs(). @@ -1026,12 +1031,6 @@ class LocalisationCache { $unused = true; // Used to be $purgeBlobs, removed in 1.34 $this->hookRunner->onLocalisationCacheRecache( $this, $code, $allData, $unused ); - // @phan-suppress-next-line PhanTypePossiblyInvalidDimOffset False positive - if ( $allData['namespaceNames'] === null ) { - throw new MWException( __METHOD__ . ': Localisation data failed validation check! ' . - 'Check that your languages/messages/MessagesEn.php file is intact.' ); - } - # Set the preload key $allData['preload'] = $this->buildPreload( $allData ); |