X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangLinks.php;h=55e3c85265a58574f6ac2e4fe5a461dd11b0c867;hb=c89995594d48cb0e6ffd522e782ccc1bc758be0e;hp=67f2c9eceaa689f0f088de257e7b52a89490b972;hpb=57eaa2bf04ce1b48bd89c10defe4de5b7d31f047;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 67f2c9ecea..55e3c85265 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -44,7 +44,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