From: Fomafix Date: Sun, 10 Jun 2018 14:01:35 +0000 (+0200) Subject: Title: Use directly Language::factory instead of wfGetLangObj X-Git-Tag: 1.34.0-rc.0~5028^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=b89445db353d1dba2a3e0fe34ed7542300f3b811;p=lhc%2Fweb%2Fwiklou.git Title: Use directly Language::factory instead of wfGetLangObj $this->mPageLanguage[0] get serialized with ->getCode() so it can deserialized with Language::factory( $this->mPageLanguage[0] ). Change-Id: I3e2bf51eb088d064d809549cfb8d15cfb464b1a9 --- diff --git a/includes/Title.php b/includes/Title.php index 9711749d33..ea819de1c8 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4980,7 +4980,7 @@ class Title implements LinkTarget { $langObj = $contentHandler->getPageLanguage( $this ); $this->mPageLanguage = [ $langObj->getCode(), $wgLanguageCode ]; } else { - $langObj = wfGetLangObj( $this->mPageLanguage[0] ); + $langObj = Language::factory( $this->mPageLanguage[0] ); } return $langObj;