From 3dfb64f9d779d92a4a0c615be7336c591ad91979 Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Fri, 9 Sep 2011 12:49:40 +0000 Subject: [PATCH] Replace localisation cache check removed in r91432 with another check --- includes/LocalisationCache.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index 0a49860ab3..d451dc2f5d 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -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 ); -- 2.20.1