From 7cbf3b6363ef4be3a322f6b1135cb819598552cf Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 1 Jan 2013 18:44:10 +0100 Subject: [PATCH] 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 --- includes/User.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.20.1