From 861b66021ba241145c17e4d3af295c88aebf11f1 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 25 Apr 2007 20:00:18 +0000 Subject: [PATCH] Method User::loadFromSession() is private. If you want to create a user object from a session, use the static method User::newFromSession(). --- includes/User.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/User.php b/includes/User.php index cfb665a268..ec3b805685 100644 --- a/includes/User.php +++ b/includes/User.php @@ -673,10 +673,8 @@ class User { * Load user data from the session or login cookie. If there are no valid * credentials, initialises the user as an anon. * @return true if the user is logged in, false otherwise - * - * @private */ - function loadFromSession() { + private function loadFromSession() { global $wgMemc, $wgCookiePrefix; if ( isset( $_SESSION['wsUserID'] ) ) { -- 2.20.1