r89473 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89472‎ | r89473 | r89474 >
Date:20:11, 4 June 2011
Author:ialex
Status:ok (Comments)
Tags:
Comment:
Use isAnon() so that the mail doesn't contain "anonymous user w.x.y.z" when a logged in user has "w.x.y.z" as real name and $wgEnotifUseRealName is true
Modified paths:
  • /trunk/phase3/includes/UserMailer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/UserMailer.php
@@ -558,7 +558,7 @@
559559 $replyto = new MailAddress( $wgNoReplyAddress );
560560 }
561561
562 - if ( $editor->isIP( $name ) ) {
 562+ if ( $editor->isAnon() ) {
563563 # real anon (user:xxx.xxx.xxx.xxx)
564564 $utext = wfMsgForContent( 'enotif_anon_editor', $name );
565565 $subject = str_replace( '$PAGEEDITOR', $utext, $subject );

Comments

#Comment by Aaron Schulz (talk | contribs)   08:09, 24 June 2011

hehe

Status & tagging log