* @file
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Query module to perform full text search within wiki titles and content
*
* @return void
*/
private function run( $resultPageSet = null ) {
- global $wgContLang;
$params = $this->extractRequestParams();
// Extract parameters
}
// Add the search results to the result
- $terms = $wgContLang->convertForSearchResult( $matches->termMatches() );
+ $terms = MediaWikiServices::getInstance()->getContentLanguage()->
+ convertForSearchResult( $matches->termMatches() );
$titles = [];
$count = 0;
$limit = $params['limit'];