X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangBacklinks.php;h=9b993128fdba1056402c77bfa5777f11d145c812;hp=a6153de9610251f99f5589b34ace1a33db3e5de7;hb=ee56f00ddf0609082f8ae9a4dc3e6e1b6f54ddfd;hpb=adae996840b9e782f6e14b21c433a83e37c3a74e diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index a6153de961..9b993128fd 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -2,8 +2,6 @@ /** * API for MediaWiki 1.17+ * - * Created on May 14, 2011 - * * Copyright © 2011 Sam Reed * Copyright © 2006 Yuri Astrakhan "@gmail.com" * @@ -51,7 +49,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 +212,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'; } }