From: Alexandre Emsenhuber Date: Tue, 1 Jan 2013 17:44:10 +0000 (+0100) Subject: Set $mLoadedItems to true in User::loadFromId() X-Git-Tag: 1.31.0-rc.0~21164^2 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=7cbf3b6363ef4be3a322f6b1135cb819598552cf;p=lhc%2Fweb%2Fwiklou.git Set $mLoadedItems to true in User::loadFromId() CentralAuth calls User::loadFromId() directly after calling setId(). This avoid having to load the object two times in this case. Change-Id: Iade37631a9346dff45e18acfa078af37c1fbbfab --- diff --git a/includes/User.php b/includes/User.php index a6958c805f..fad9af8d7b 100644 --- a/includes/User.php +++ b/includes/User.php @@ -332,6 +332,9 @@ class User { $this->$name = $data[$name]; } } + + $this->mLoadedItems = true; + return true; }