dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba16916
)
Set $mLoadedItems to true in User::loadFromId()
author
Alexandre Emsenhuber
<ialex.wiki@gmail.com>
Tue, 1 Jan 2013 17:44:10 +0000
(18:44 +0100)
committer
Alexandre Emsenhuber
<ialex.wiki@gmail.com>
Tue, 1 Jan 2013 17:44:10 +0000
(18:44 +0100)
CentralAuth calls User::loadFromId() directly after calling setId().
This avoid having to load the object two times in this case.
Change-Id: Iade37631a9346dff45e18acfa078af37c1fbbfab
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
a6958c8
..
fad9af8
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-332,6
+332,9
@@
class User {
$this->$name = $data[$name];
}
}
+
+ $this->mLoadedItems = true;
+
return true;
}