From: Alexandre Emsenhuber Date: Sat, 4 Jun 2011 20:11:05 +0000 (+0000) Subject: Use isAnon() so that the mail doesn't contain "anonymous user w.x.y.z" when a logged... X-Git-Tag: 1.31.0-rc.0~29719 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=885c45aca3db324617aaf78bc25d98eeb0ec5869;p=lhc%2Fweb%2Fwiklou.git 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 --- diff --git a/includes/UserMailer.php b/includes/UserMailer.php index f40e9b8d1b..a115a70052 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -558,7 +558,7 @@ class EmailNotification { $replyto = new MailAddress( $wgNoReplyAddress ); } - if ( $editor->isIP( $name ) ) { + if ( $editor->isAnon() ) { # real anon (user:xxx.xxx.xxx.xxx) $utext = wfMsgForContent( 'enotif_anon_editor', $name ); $subject = str_replace( '$PAGEEDITOR', $utext, $subject );