X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiClientLogin.php;h=3f5bc0c0c89984267e787efe9d2b7a171e95fcd6;hb=872dc01de3bfae0db3f952b75b95d98beb47449e;hp=cbb1524cc7da2b94e7cbcc5908b907b33ae0ef6e;hpb=b42a366b66c75898d70b0b70eb9be7e73cf0bc35;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiClientLogin.php b/includes/api/ApiClientLogin.php index cbb1524cc7..3f5bc0c0c8 100644 --- a/includes/api/ApiClientLogin.php +++ b/includes/api/ApiClientLogin.php @@ -57,8 +57,8 @@ class ApiClientLogin extends ApiBase { $bits = wfParseUrl( $params['returnurl'] ); if ( !$bits || $bits['scheme'] === '' ) { $encParamName = $this->encodeParamName( 'returnurl' ); - $this->dieUsage( - "Invalid value '{$params['returnurl']}' for url parameter $encParamName", + $this->dieWithError( + [ 'apierror-badurl', $encParamName, wfEscapeWikiText( $params['returnurl'] ) ], "badurl_{$encParamName}" ); }