X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangBacklinks.php;h=fd67d7c464fc9fc14f1cc72647c5ffed9e8518fd;hb=996587e228e71436dc4bf2bceb41ce5a94e9288c;hp=a6153de9610251f99f5589b34ace1a33db3e5de7;hpb=939199bcea28a3b13c49c0f808d11d415660b924;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index a6153de961..fd67d7c464 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -51,7 +51,14 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { $params = $this->extractRequestParams(); if ( isset( $params['title'] ) && !isset( $params['lang'] ) ) { - $this->dieUsageMsg( [ 'missingparam', 'lang' ] ); + $this->dieWithError( + [ + 'apierror-invalidparammix-mustusewith', + $this->encodeParamName( 'title' ), + $this->encodeParamName( 'lang' ) + ], + 'nolang' + ); } if ( !is_null( $params['continue'] ) ) { @@ -207,6 +214,6 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Langbacklinks'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Langbacklinks'; } }