X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQuerySearch.php;h=0dd89228593894ecaffb36816127f83a0aeac421;hb=9f2b48a970645f3a0a6b319e5c131e2b0bd1b259;hp=05b693d552f2e7983b080e24263a00e4a2db770b;hpb=12846c08cb7f721011952da0aebb95657d7d030c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index 05b693d552..0dd8922859 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -62,18 +62,6 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { $searchInfo = array_flip( $params['info'] ); $prop = array_flip( $params['prop'] ); - // Deprecated parameters - if ( isset( $prop['hasrelated'] ) ) { - $this->addDeprecation( - [ 'apiwarn-deprecation-parameter', 'srprop=hasrelated' ], 'action=search&srprop=hasrelated' - ); - } - if ( isset( $prop['score'] ) ) { - $this->addDeprecation( - [ 'apiwarn-deprecation-parameter', 'srprop=score' ], 'action=search&srprop=score' - ); - } - // Create search engine instance and set options $search = $this->buildSearchEngine( $params ); $search->setFeatureData( 'rewrite', (bool)$params['enablerewrites'] ); @@ -386,6 +374,10 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { ], ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_HELP_MSG_PER_VALUE => [], + ApiBase::PARAM_DEPRECATED_VALUES => [ + 'score' => true, + 'hasrelated' => true + ], ], 'interwiki' => false, 'enablerewrites' => false, @@ -415,6 +407,6 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Search'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Search'; } }