Replace localisation cache check removed in r91432 with another check

This commit is contained in:
Robin Pepermans 2011-09-09 12:49:40 +00:00
parent eb7e4881ea
commit 3dfb64f9d7

View file

@ -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 );