dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb7e488
)
Replace localisation cache check removed in r91432 with another check
author
Robin Pepermans
<robin@users.mediawiki.org>
Fri, 9 Sep 2011 12:49:40 +0000
(12:49 +0000)
committer
Robin Pepermans
<robin@users.mediawiki.org>
Fri, 9 Sep 2011 12:49:40 +0000
(12:49 +0000)
includes/LocalisationCache.php
patch
|
blob
|
history
diff --git
a/includes/LocalisationCache.php
b/includes/LocalisationCache.php
index
0a49860
..
d451dc2
100644
(file)
--- 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 );