r36366 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36365‎ | r36366 | r36367 >
Date:04:34, 17 June 2008
Author:demon
Status:old
Tags:
Comment:
Other params that are useful to this message. Hasn't been translated yet, so no downstream effects.
Modified paths:
  • /trunk/phase3/includes/specials/Emailuser.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/Emailuser.php
@@ -149,10 +149,16 @@
150150 $subject = $this->subject;
151151
152152 $prefsTitle = Title::newFromText( 'Preferences', NS_SPECIAL );
 153+ $emailTitle = Title::newFromText( 'Emailuser', NS_SPECIAL );
153154
154155 // Add a standard footer
155 - $this->text = $this->text . "\n" . wfMsg( 'emailuserfooter', array( $wgSitename, $prefsTitle->getFullURL() ) );
156 -
 156+ $footerArgs[0] = $wgSitename;
 157+ $footerArgs[1] = $from->name;
 158+ $footerArgs[2] = $to->name;
 159+ $footerArgs[3] = $prefsTitle->getFullURL();
 160+ $footerArgs[4] = $emailTitle->getFullURL() . '/' . urlencode( $from->name ); // Url to Special:Emailuser/Username
 161+ $this->text = $this->text . "\n" . wfMsg( 'emailuserfooter', $footerArgs );
 162+
157163 if( wfRunHooks( 'EmailUser', array( &$to, &$from, &$subject, &$this->text ) ) ) {
158164
159165 if( $wgUserEmailUseReplyTo ) {
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -2014,9 +2014,11 @@
20152015 'emailccsubject' => 'Copy of your message to $1: $2',
20162016 'emailsent' => 'E-mail sent',
20172017 'emailsenttext' => 'Your e-mail message has been sent.',
2018 -'emailuserfooter' => 'Please note, $1 cannot be held responsible for the content of this email.
 2018+'emailuserfooter' => 'Sent automatically by $1 to $2 for $3
 2019+Please note, $1 cannot be held responsible for the content of this email.
20192020 The option to remove yourself from these mailings is in your preferences
2020 -Check your preferences at $2 and uncheck "Enable e-mail from other users."',
 2021+Check your preferences at $4 and uncheck "Enable e-mail from other users."
 2022+To e-mail back without revealing your e-mail address, please use $5',
20212023
20222024 # Watchlist
20232025 'watchlist' => 'My watchlist',

Status & tagging log