(bug 39674) Fixed loading User from session when hook aborts.
authorTyler Anthony Romeo <tylerromeo@gmail.com>
Mon, 27 Aug 2012 02:28:48 +0000 (22:28 -0400)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 28 Sep 2012 06:12:31 +0000 (06:12 +0000)
commit60c596812bab018df098c574bc17a3e070106b6b
tree905eb26a1384e09669bbe1808a3c32bf7448bde3
parent74760579254fd51e9872ffbf4fb46307f0cf62f5
(bug 39674) Fixed loading User from session when hook aborts.

Rather than have separate calls to User::loadDefaults()
every time User::loadFromSession() fails, there is now just
one call in User::load() if loadFromSession() returns false.
This fixes the case where a UserLoadFromSession hook aborts
loading from session, leaving the User object uninitialized.

Change-Id: I8d1a114d7ec361b27b260791f742c473a1497f26
Signed-off-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
includes/User.php