From: Nemo bis Date: Fri, 9 Aug 2013 16:50:27 +0000 (+0200) Subject: Add email recipient username as a parameter to emailuser confirmation X-Git-Tag: 1.31.0-rc.0~18832 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=3a9eee3bfc08500f11ba62871fbccf35ec98f900;p=lhc%2Fweb%2Fwiklou.git 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 --- diff --git a/includes/specials/SpecialEmailuser.php b/includes/specials/SpecialEmailuser.php index d037d550a3..27188c37e3 100644 --- a/includes/specials/SpecialEmailuser.php +++ b/includes/specials/SpecialEmailuser.php @@ -165,7 +165,7 @@ class SpecialEmailUser extends UnlistedSpecialPage { 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 73c1ddff38..f8b5ddf2f6 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -5047,7 +5047,8 @@ Parameters: * $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',