http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96659
Revision: 96659
Author: robin
Date: 2011-09-09 12:49:40 +0000 (Fri, 09 Sep 2011)
Log Message:
-----------
Replace localisation cache check removed in r91432 with another check
Modified Paths:
--------------
trunk/phase3/includes/LocalisationCache.php
Modified: trunk/phase3/includes/LocalisationCache.php
===================================================================
--- trunk/phase3/includes/LocalisationCache.php 2011-09-09 12:42:59 UTC (rev
96658)
+++ trunk/phase3/includes/LocalisationCache.php 2011-09-09 12:49:40 UTC (rev
96659)
@@ -645,6 +645,11 @@
# 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 );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs