X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangLinks.php;h=2d8e44cda525f9b0d55401560e6157486449f96d;hp=67f2c9eceaa689f0f088de257e7b52a89490b972;hb=ee56f00ddf0609082f8ae9a4dc3e6e1b6f54ddfd;hpb=2f885ee6b797e5a176ce7b270b674a04b5945b06 diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 67f2c9ecea..2d8e44cda5 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -1,9 +1,5 @@ @gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -44,7 +40,14 @@ class ApiQueryLangLinks extends ApiQueryBase { $prop = array_flip( (array)$params['prop'] ); if ( isset( $params['title'] ) && !isset( $params['lang'] ) ) { - $this->dieUsageMsg( [ 'missingparam', 'lang' ] ); + $this->dieWithError( + [ + 'apierror-invalidparammix-mustusewith', + $this->encodeParamName( 'title' ), + $this->encodeParamName( 'lang' ), + ], + 'invalidparammix' + ); } // Handle deprecated param @@ -183,6 +186,6 @@ class ApiQueryLangLinks extends ApiQueryBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Langlinks'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Langlinks'; } }