From 0aa93ad8b82eb4f210f367029756519174cc7fa2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 25 Jun 2015 13:03:43 -0700 Subject: [PATCH] Made User::loadFromId() use READ_NORMAL by default * This covers CentralAuthHooks::onUserLoadFromSession() among other cases (OAuth user loading, ect). Bug: T92357 Change-Id: I9c90027d8852ff8c1d626c03b5dbd765b95b0ce1 --- includes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/User.php b/includes/User.php index 1ee8173b2f..21c09ccb26 100644 --- a/includes/User.php +++ b/includes/User.php @@ -378,7 +378,7 @@ class User implements IDBAccessObject { * @param integer $flags User::READ_* constant bitfield * @return bool False if the ID does not exist, true otherwise */ - public function loadFromId( $flags = self::READ_LATEST ) { + public function loadFromId( $flags = self::READ_NORMAL ) { if ( $this->mId == 0 ) { $this->loadDefaults(); return false; -- 2.20.1