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
Make Language::isValidBuiltInCode() return bool
[lhc/web/wiklou.git]
/
languages
/
Language.php
diff --git
a/languages/Language.php
b/languages/Language.php
index
7475d2f
..
a72f98f
100644
(file)
--- a/
languages/Language.php
+++ b/
languages/Language.php
@@
-277,7
+277,7
@@
class Language {
throw new MWException( __METHOD__ . " must be passed a string, $type given$addmsg" );
}
- return preg_match( '/^[a-z0-9-]+$/i', $code );
+ return
(bool)
preg_match( '/^[a-z0-9-]+$/i', $code );
}
/**