dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove unreachable code after an exception
[lhc/web/wiklou.git]
/
languages
/
Language.php
diff --git
a/languages/Language.php
b/languages/Language.php
index
4628812
..
ab7220c
100644
(file)
--- a/
languages/Language.php
+++ b/
languages/Language.php
@@
-3780,9
+3780,9
@@
class Language {
file_get_contents( $grammarDataFile ),
true
);
+
if ( $data === null ) {
throw new MWException( "Invalid grammar data for \"$languageCode\"." );
- $data = [];
}
self::$grammarTransformations->set( $languageCode, $data );