From: ayush_garg Date: Tue, 31 Mar 2015 10:51:36 +0000 (+0530) Subject: Special:LinkSearch: display links to pages in content language X-Git-Tag: 1.31.0-rc.0~11907^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=9c9736ed4b9bc208bb44a7cd8bf48bc667876135;p=lhc%2Fweb%2Fwiklou.git Special:LinkSearch: display links to pages in content language Bug: T66064 Change-Id: Ib2af28bec7b9c6ec01c5628be07e1280cbbd2f83 --- diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index 20aac18fc1..75ff8f300c 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -68,8 +68,9 @@ class LinkSearchPage extends QueryPage { * This allows for dependency injection even though we don't control object creation. */ private function initServices() { + global $wgLanguageCode; if ( !$this->linkRenderer ) { - $lang = $this->getContext()->getLanguage(); + $lang = Language::factory( $wgLanguageCode ); $titleFormatter = new MediaWikiTitleCodec( $lang, GenderCache::singleton() ); $this->linkRenderer = new MediaWikiPageLinkRenderer( $titleFormatter ); }