From: Tim Starling Date: Tue, 17 Oct 2006 10:38:56 +0000 (+0000) Subject: Pass by reference, allow AutoAuthenticate to create a new object and assign it to... X-Git-Tag: 1.31.0-rc.0~55453 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=6ef631c5bc372234b8718f6b9f931e87c0569634;p=lhc%2Fweb%2Fwiklou.git Pass by reference, allow AutoAuthenticate to create a new object and assign it to $user. --- diff --git a/includes/StubObject.php b/includes/StubObject.php index 9d21931156..87316700df 100644 --- a/includes/StubObject.php +++ b/includes/StubObject.php @@ -120,7 +120,7 @@ class StubUser extends StubObject { $user = new User; } else { $user = User::newFromSession(); - wfRunHooks('AutoAuthenticate',array($user)); + wfRunHooks('AutoAuthenticate',array(&$user)); } return $user; }