Use isAnon() so that the mail doesn't contain "anonymous user w.x.y.z" when a logged...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 4 Jun 2011 20:11:05 +0000 (20:11 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 4 Jun 2011 20:11:05 +0000 (20:11 +0000)
includes/UserMailer.php

index f40e9b8..a115a70 100644 (file)
@@ -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 );