dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Converted User to use lazy initialisation. This is to avoid unstub loops, and also...
[lhc/web/wiklou.git]
/
includes
/
StubObject.php
diff --git
a/includes/StubObject.php
b/includes/StubObject.php
index
ed3b117
..
9d21931
100644
(file)
--- a/
includes/StubObject.php
+++ b/
includes/StubObject.php
@@
-118,9
+118,8
@@
class StubUser extends StubObject {
global $wgCommandLineMode;
if( $wgCommandLineMode ) {
$user = new User;
- $user->setLoaded( true );
} else {
- $user = User::
load
FromSession();
+ $user = User::
new
FromSession();
wfRunHooks('AutoAuthenticate',array($user));
}
return $user;