Add email recipient username as a parameter to emailuser confirmation
authorNemo bis <federicoleva@tiscali.it>
Fri, 9 Aug 2013 16:50:27 +0000 (18:50 +0200)
committerNikerabbit <niklas.laxstrom@gmail.com>
Sun, 1 Sep 2013 09:47:28 +0000 (09:47 +0000)
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

includes/specials/SpecialEmailuser.php
languages/messages/MessagesQqq.php

index d037d55..27188c3 100644 (file)
@@ -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() );
                }
        }
index 73c1ddf..f8b5ddf 100644 (file)
@@ -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',