X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiChangeAuthenticationData.php;h=35c4e568c613f56cf4bb79c1f5cacfa1bce27a00;hb=d8653d2758016c6e13acefca55f38468eb32f30b;hp=aea28195f0a9a18c42af037194efe61a98237f3a;hpb=3eebaaffcf25c3779725309570de924ad5bea766;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiChangeAuthenticationData.php b/includes/api/ApiChangeAuthenticationData.php index aea28195f0..35c4e568c6 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 ); @@ -93,6 +93,6 @@ class ApiChangeAuthenticationData extends ApiBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Manage_authentication_data'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Manage_authentication_data'; } }