jenkins-bot has submitted this change and it was merged.
Change subject: Possible error messages for action=createaccount should be in
English and not show local modifications
......................................................................
Possible error messages for action=createaccount should be in English and not
show local modifications
Bug: 47791
Change-Id: Id55f65d1a7b9b2d6a17da0b87bffe42ceb4231ef
---
M includes/api/ApiCreateAccount.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Parent5446: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/api/ApiCreateAccount.php
b/includes/api/ApiCreateAccount.php
index 9464d49..201634d 100644
--- a/includes/api/ApiCreateAccount.php
+++ b/includes/api/ApiCreateAccount.php
@@ -250,7 +250,7 @@
$errors = parent::getPossibleErrors();
// All local errors are from LoginForm, which means they're
actually message keys.
foreach ( $localErrors as $error ) {
- $errors[] = array( 'code' => $error, 'info' =>
wfMessage( $error )->parse() );
+ $errors[] = array( 'code' => $error, 'info' =>
wfMessage( $error )->inLanguage( 'en' )->useDatabase( false )->parse() );
}
$errors[] = array(
@@ -274,7 +274,7 @@
global $wgMinimalPasswordLength;
$errors[] = array(
'code' => 'passwordtooshort',
- 'info' => wfMessage( 'passwordtooshort',
$wgMinimalPasswordLength )->parse()
+ 'info' => wfMessage( 'passwordtooshort',
$wgMinimalPasswordLength )->inLanguage( 'en' )->useDatabase( false )->parse()
);
return $errors;
}
--
To view, visit https://gerrit.wikimedia.org/r/75081
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id55f65d1a7b9b2d6a17da0b87bffe42ceb4231ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits