Add missing @throws documentation to Language::factory
[lhc/web/wiklou.git] / languages / Language.php
index c514cdc..8517f26 100644 (file)
@@ -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;
        }