X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2FLanguage.php;h=81564ab202c69844f71b5e55333a9f45eed81eb6;hb=b5370206ff602728c08403f14756d4339bf0a708;hp=c514cdc5952e19b08b997b220bc4e8d7dea33bba;hpb=3e88f9fa2a5a00bc1330560accf8e9d09c8be42a;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index c514cdc595..81564ab202 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -167,7 +167,7 @@ class Language { * The form is '/(?:([strong ltr codepoint])|([strong rtl codepoint]))/u' . * * Generated by UnicodeJS (see tools/strongDir) from the UCD; see - * https://git.wikimedia.org/summary/unicodejs.git . + * https://phabricator.wikimedia.org/diffusion/GUJS/ . */ // @codingStandardsIgnoreStart // @codeCoverageIgnoreStart @@ -178,6 +178,7 @@ class Language { /** * Get a cached or new language object for a given language code * @param string $code + * @throws MWException * @return Language */ static function factory( $code ) { @@ -4309,7 +4310,7 @@ class Language { */ public function getHtmlCode() { if ( is_null( $this->mHtmlCode ) ) { - $this->mHtmlCode = wfBCP47( $this->getCode() ); + $this->mHtmlCode = LanguageCode::bcp47( $this->getCode() ); } return $this->mHtmlCode; }