From: Robin Pepermans Date: Fri, 9 Sep 2011 12:49:40 +0000 (+0000) Subject: Replace localisation cache check removed in r91432 with another check X-Git-Tag: 1.31.0-rc.0~27767 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=3dfb64f9d779d92a4a0c615be7336c591ad91979;p=lhc%2Fweb%2Fwiklou.git Replace localisation cache check removed in r91432 with another check --- 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 );