dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
54811d3
)
Merge "Avoid fatal errors with uselang=s"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Mon, 8 Apr 2013 14:36:17 +0000
(14:36 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Mon, 8 Apr 2013 14:36:17 +0000
(14:36 +0000)
languages/Language.php
patch
|
blob
|
history
diff --git
a/languages/Language.php
b/languages/Language.php
index
dd8a314
..
8aaaec0
100644
(file)
--- a/
languages/Language.php
+++ b/
languages/Language.php
@@
-357,7
+357,7
@@
class Language {
throw new MWException( __METHOD__ . " must be passed a string, $type given$addmsg" );
}
- return (bool)preg_match( '/^[a-z0-9-]
+
$/i', $code );
+ return (bool)preg_match( '/^[a-z0-9-]
{2,}
$/i', $code );
}
/**