Avoid code duplication for Language::isValidCode
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 5 Feb 2011 22:55:09 +0000 (22:55 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 5 Feb 2011 22:55:09 +0000 (22:55 +0000)
commit979880b77425c1bc72f86dcbbaa56ea1cf206f56
tree178f2da0efa876fe9790ac62cd2fd10fc152f7c1
parent0ed585bdaaa2f1796c04a40582b82970fae354c6
Avoid code duplication for Language::isValidCode

r81335 changed the way we validate language code by introducing:
  strcspn( $code, "/\\\000" ) !== strlen( $code )

That code was later made a function in r81340 but some conditional tests were
not updated to reflect this change.
languages/Language.php