diff options
Diffstat (limited to 'includes/api/ApiQueryIWBacklinks.php')
-rw-r--r-- | includes/api/ApiQueryIWBacklinks.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 75681077dec7..6e2fb67b8d99 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -51,7 +51,14 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { $params = $this->extractRequestParams(); if ( isset( $params['title'] ) && !isset( $params['prefix'] ) ) { - $this->dieUsageMsg( [ 'missingparam', 'prefix' ] ); + $this->dieWithError( + [ + 'apierror-invalidparammix-mustusewith', + $this->encodeParamName( 'title' ), + $this->encodeParamName( 'prefix' ), + ], + 'invalidparammix' + ); } if ( !is_null( $params['continue'] ) ) { |