X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiChangeAuthenticationData.php;h=c25920e72859d0da3d16430989b7899029012eac;hb=144a683e94d791aeba006d7fa301b8e3c12428d0;hp=aea28195f0a9a18c42af037194efe61a98237f3a;hpb=a5be382adfdad4678eec18413c6a118cb3284daf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiChangeAuthenticationData.php b/includes/api/ApiChangeAuthenticationData.php index aea28195f0..c25920e728 100644 --- a/includes/api/ApiChangeAuthenticationData.php +++ b/includes/api/ApiChangeAuthenticationData.php @@ -35,7 +35,7 @@ class ApiChangeAuthenticationData extends ApiBase { public function execute() { if ( !$this->getUser()->isLoggedIn() ) { - $this->dieUsage( 'Must be logged in to change authentication data', 'notloggedin' ); + $this->dieWithError( 'apierror-mustbeloggedin-changeauthenticationdata', 'notloggedin' ); } $helper = new ApiAuthManagerHelper( $this ); @@ -50,7 +50,7 @@ class ApiChangeAuthenticationData extends ApiBase { $this->getConfig()->get( 'ChangeCredentialsBlacklist' ) ); if ( count( $reqs ) !== 1 ) { - $this->dieUsage( 'Failed to create change request', 'badrequest' ); + $this->dieWithError( 'apierror-changeauth-norequest', 'badrequest' ); } $req = reset( $reqs );