jenkins-bot has submitted this change and it was merged.

Change subject: Add email recipient username as a parameter to emailuser 
confirmation
......................................................................


Add email recipient username as a parameter to emailuser confirmation

Just as optional parameter, strictly following the bug summary, should be 
enough.
I sometimes open many tabs, forget who I emailed and have to check my email,
but unless someone thinks this common I don't think it's worth changing
the actual text of the confirmation adding more clutter.

Bug: 44668
Change-Id: Icf0ac18150847424728121e614849f87bee2e0e7
---
M includes/specials/SpecialEmailuser.php
M languages/messages/MessagesQqq.php
2 files changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialEmailuser.php 
b/includes/specials/SpecialEmailuser.php
index d037d55..27188c3 100644
--- a/includes/specials/SpecialEmailuser.php
+++ b/includes/specials/SpecialEmailuser.php
@@ -165,7 +165,7 @@
 
                if ( $result === true || ( $result instanceof Status && 
$result->isGood() ) ) {
                        $out->setPageTitle( $this->msg( 'emailsent' ) );
-                       $out->addWikiMsg( 'emailsenttext' );
+                       $out->addWikiMsg( 'emailsenttext', $this->mTarget );
                        $out->returnToMain( false, 
$this->mTargetObj->getUserPage() );
                }
        }
diff --git a/languages/messages/MessagesQqq.php 
b/languages/messages/MessagesQqq.php
index 73c1ddf..f8b5ddf 100644
--- a/languages/messages/MessagesQqq.php
+++ b/languages/messages/MessagesQqq.php
@@ -5047,7 +5047,8 @@
 * $1 - target username
 * $2 - email subject',
 'emailsent' => 'Title of [[Special:EmailUser]] when it says you it sent an 
email',
-'emailsenttext' => 'When you send an e-mail, [[Special:EmailUser]] says you 
this (Your email has been sent).',
+'emailsenttext' => "Confirmation page: when you send an e-mail, 
[[Special:EmailUser]] says you this (Your email has been sent).
+The recipient's username is available as parameter $1 for local 
customisations.",
 'emailuserfooter' => 'This message is appended to every email sent through the 
"Email user" function. Parameters:
 * $1 - username of the sender
 * $2 - username of the recipient',

-- 
To view, visit https://gerrit.wikimedia.org/r/78404
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icf0ac18150847424728121e614849f87bee2e0e7
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Nemo bis <[email protected]>
Gerrit-Reviewer: Matmarex <[email protected]>
Gerrit-Reviewer: Nikerabbit <[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

Reply via email to