From 34db0956e1743a0caf468d4e0f1d2a0df84805a7 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 20 Mar 2012 06:19:02 +0000 Subject: [PATCH] (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. --- includes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/User.php b/includes/User.php index 9fdd076bcd..e95e5309f3 100644 --- a/includes/User.php +++ b/includes/User.php @@ -3943,7 +3943,7 @@ class User { 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; } -- 2.20.1