http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89473

Revision: 89473
Author:   ialex
Date:     2011-06-04 20:11:05 +0000 (Sat, 04 Jun 2011)
Log Message:
-----------
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: trunk/phase3/includes/UserMailer.php
===================================================================
--- trunk/phase3/includes/UserMailer.php        2011-06-04 19:03:49 UTC (rev 
89472)
+++ trunk/phase3/includes/UserMailer.php        2011-06-04 20:11:05 UTC (rev 
89473)
@@ -558,7 +558,7 @@
                        $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 
);


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to