r17069 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17068‎ | r17069 | r17070 >
Date:10:38, 17 October 2006
Author:tstarling
Status:old
Tags:
Comment:
Pass by reference, allow AutoAuthenticate to create a new object and assign it to $user.
Modified paths:
  • /trunk/phase3/includes/StubObject.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/StubObject.php
@@ -120,7 +120,7 @@
121121 $user = new User;
122122 } else {
123123 $user = User::newFromSession();
124 - wfRunHooks('AutoAuthenticate',array($user));
 124+ wfRunHooks('AutoAuthenticate',array(&$user));
125125 }
126126 return $user;
127127 }