Set $mLoadedItems to true in User::loadFromId()
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 1 Jan 2013 17:44:10 +0000 (18:44 +0100)
committerAlexandre 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

index a6958c8..fad9af8 100644 (file)
@@ -332,6 +332,9 @@ class User {
                                $this->$name = $data[$name];
                        }
                }
+
+               $this->mLoadedItems = true;
+
                return true;
        }