X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQuerySearch.php;h=ba60da95bb3db41ab2285024fe04d299417c3d85;hb=068e0e6ca0bff5c8c8867e473865625fddedde16;hp=f46b5d253bacfe9e44c93e062ef7939cb3fea7d0;hpb=43b7b5ef948ede9f1b8dee64b5d8742d4ab292c5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index f46b5d253b..ba60da95bb 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -24,8 +24,6 @@ * @file */ -use MediaWiki\MediaWikiServices; - /** * Query module to perform full text search within wiki titles and content * @@ -235,7 +233,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { $vals = [ 'namespace' => $result->getInterwikiNamespaceText(), 'title' => $title->getText(), - 'url' => $title->getFullUrl(), + 'url' => $title->getFullURL(), ]; // Add item to results and see whether it fits