X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryIWLinks.php;h=cfd990b21301dfad020f15148ef098455279c1b7;hb=233900e99c9e52dc5dea33ba80f603a97618cf53;hp=6d9c2ca86115c0dbe76daa9c705b510f3ea3e0ca;hpb=939199bcea28a3b13c49c0f808d11d415660b924;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index 6d9c2ca861..cfd990b213 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -45,7 +45,14 @@ class ApiQueryIWLinks extends ApiQueryBase { $prop = array_flip( (array)$params['prop'] ); if ( isset( $params['title'] ) && !isset( $params['prefix'] ) ) { - $this->dieUsageMsg( [ 'missingparam', 'prefix' ] ); + $this->dieWithError( + [ + 'apierror-invalidparammix-mustusewith', + $this->encodeParamName( 'title' ), + $this->encodeParamName( 'prefix' ), + ], + 'invalidparammix' + ); } // Handle deprecated param