Replace localisation cache check removed in r91432 with another check
This commit is contained in:
parent
eb7e4881ea
commit
3dfb64f9d7
1 changed files with 5 additions and 0 deletions
|
|
@ -645,6 +645,11 @@ class LocalisationCache {
|
|||
# Run hooks
|
||||
wfRunHooks( 'LocalisationCacheRecache', array( $this, $code, &$allData ) );
|
||||
|
||||
if ( is_null( $allData['namespaceNames'] ) ) {
|
||||
throw new MWException( __METHOD__.': Localisation data failed sanity check! ' .
|
||||
'Check that your languages/messages/MessagesEn.php file is intact.' );
|
||||
}
|
||||
|
||||
# Set the preload key
|
||||
$allData['preload'] = $this->buildPreload( $allData );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue