r36365 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36364‎ | r36365 | r36366 >
Date:03:51, 17 June 2008
Author:demon
Status:old
Tags:
Comment:
(bug 14558) New system message (emailuserfooter) is now added to the footer of e-mails sent with Special:Emailuser. "Emailuserfooter' was already defined in the message rebuild script, but was unused.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /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
@@ -142,12 +142,17 @@
143143 * check the edit token and ping limiter in advance.
144144 */
145145 function doSubmit() {
146 - global $wgUser, $wgUserEmailUseReplyTo;
 146+ global $wgUser, $wgUserEmailUseReplyTo, $wgSiteName;
147147
148148 $to = new MailAddress( $this->target );
149149 $from = new MailAddress( $wgUser );
150150 $subject = $this->subject;
151151
 152+ $prefsTitle = Title::newFromText( 'Preferences', NS_SPECIAL );
 153+
 154+ // Add a standard footer
 155+ $this->text = $this->text . "\n" . wfMsg( 'emailuserfooter', array( $wgSitename, $prefsTitle->getFullURL() ) );
 156+
152157 if( wfRunHooks( 'EmailUser', array( &$to, &$from, &$subject, &$this->text ) ) ) {
153158
154159 if( $wgUserEmailUseReplyTo ) {
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -2014,6 +2014,9 @@
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.
 2019+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."',
20182021
20192022 # Watchlist
20202023 'watchlist' => 'My watchlist',
Index: trunk/phase3/RELEASE-NOTES
@@ -156,6 +156,8 @@
157157 * (bug 14132) Allow user to disable bot edits from being output to UDP.
158158 * (bug 14328) jsMsg() within Wikibits now accepts a DOM object, not just a string
159159 * (bug 2889) MediaWiki:Print.css applies to the printable version
 160+* (bug 14558) New system message (emailuserfooter) is now added to the footer of
 161+ e-mails sent with Special:Emailuser
160162
161163 === Bug fixes in 1.13 ===
162164

Status & tagging log