Pass by reference, allow AutoAuthenticate to create a new object and assign it to...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 17 Oct 2006 10:38:56 +0000 (10:38 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 17 Oct 2006 10:38:56 +0000 (10:38 +0000)
includes/StubObject.php

index 9d21931..8731670 100644 (file)
@@ -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;
        }