X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiAMCreateAccount.php;h=72a36d71a6bbd2ebb4533876ef6d304f6619278a;hb=6b604178acc9beecd2abc638043c9067043efc12;hp=2511e3be99cbacc39460db754d4e73b952f19828;hpb=4a975b8099ee11b15421d03be02206935a8422f1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiAMCreateAccount.php b/includes/api/ApiAMCreateAccount.php index 2511e3be99..72a36d71a6 100644 --- a/includes/api/ApiAMCreateAccount.php +++ b/includes/api/ApiAMCreateAccount.php @@ -1,6 +1,6 @@ + * Copyright © 2016 Wikimedia Foundation and contributors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -56,8 +56,8 @@ class ApiAMCreateAccount 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}" ); } @@ -132,6 +132,6 @@ class ApiAMCreateAccount extends ApiBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Account_creation'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Account_creation'; } }