$wgContLang is filled with Language::factory( $wgLanguageCode ) in Setup.php
Change-Id: I2cb222ee793106140755cf109f9fcc5fcbaa4ddd
* This allows for dependency injection even though we don't control object creation.
*/
private function initServices() {
- global $wgLanguageCode;
+ global $wgContLang;
if ( !$this->linkRenderer ) {
- $lang = Language::factory( $wgLanguageCode );
- $titleFormatter = new MediaWikiTitleCodec( $lang, GenderCache::singleton() );
+ $titleFormatter = new MediaWikiTitleCodec( $wgContLang, GenderCache::singleton() );
$this->linkRenderer = new MediaWikiPageLinkRenderer( $titleFormatter );
}
}