jenkins-bot has submitted this change and it was merged.
Change subject: Let promoted sandbox accounts get a NewUserMessage welcome
..
Let promoted sandbox accounts get a NewUserMessage welcome
As well as any other nicety attached to the AddNewAccount hook.
Bug: 58970
Change-Id: Idff6734e798a6b7344d5c4892feb82f0a0d6b753
---
M api/ApiTranslateSandbox.php
M hooks.txt
2 files changed, 3 insertions(+), 0 deletions(-)
Approvals:
Nikerabbit: Looks good to me, approved
jenkins-bot: Verified
diff --git a/api/ApiTranslateSandbox.php b/api/ApiTranslateSandbox.php
index 6256b5b..bfac13e 100644
--- a/api/ApiTranslateSandbox.php
+++ b/api/ApiTranslateSandbox.php
@@ -133,6 +133,7 @@
$user-addNewUserLogEntry( 'tsbpromoted' );
$this-createUserPage( $user );
+ wfRunHooks( 'AddNewAccount', array( $user, false ) );
}
}
diff --git a/hooks.txt b/hooks.txt
index ca4f429..6837fcc 100644
--- a/hooks.txt
+++ b/hooks.txt
@@ -149,6 +149,8 @@
;TranslateTranslationAids: Make new translation aids available to any message
group (which must choose an implementation in its getTranslationAids() method).
array $types: List of translation aid identifiers, numerically
indexed
+;AddNewAccount: Replica of the core hook, see
https://www.mediawiki.org/wiki/Manual:Hooks/AddNewAccount
+
=== JavaScript events ===
;afterRegisterFeatures: Provides an opportunity to register event handlers,
etc., whenever a new form is opened.
--
To view, visit https://gerrit.wikimedia.org/r/132690
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Idff6734e798a6b7344d5c4892feb82f0a0d6b753
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nemo bis federicol...@tiscali.it
Gerrit-Reviewer: Hashar has...@free.fr
Gerrit-Reviewer: Nikerabbit niklas.laxst...@gmail.com
Gerrit-Reviewer: jenkins-bot
___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits