https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114234

Revision: 114234
Author:   tstarling
Date:     2012-03-20 06:19:02 +0000 (Tue, 20 Mar 2012)
Log Message:
-----------
(bug 35316) On autocreate, use $this as the "doer" in the newuser log entry, 
since unlike User::addNewUserLogEntry(), there is no way the action could have 
been triggered by a different user. Usually $wgUser is set correctly, but 
there's no need to rely on it here.

Modified Paths:
--------------
    trunk/phase3/includes/User.php

Modified: trunk/phase3/includes/User.php
===================================================================
--- trunk/phase3/includes/User.php      2012-03-20 05:17:40 UTC (rev 114233)
+++ trunk/phase3/includes/User.php      2012-03-20 06:19:02 UTC (rev 114234)
@@ -3943,7 +3943,7 @@
                        return true; // disabled
                }
                $log = new LogPage( 'newusers', false );
-               $log->addEntry( 'autocreate', $this->getUserPage(), '', array( 
$this->getId() ) );
+               $log->addEntry( 'autocreate', $this->getUserPage(), '', array( 
$this->getId() ), $this );
                return true;
        }
 


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

Reply via email to