From: Antoine Musso Date: Wed, 25 Apr 2007 20:00:18 +0000 (+0000) Subject: Method User::loadFromSession() is private. If you want to create a user X-Git-Tag: 1.31.0-rc.0~53229 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=861b66021ba241145c17e4d3af295c88aebf11f1;p=lhc%2Fweb%2Fwiklou.git Method User::loadFromSession() is private. If you want to create a user object from a session, use the static method User::newFromSession(). --- 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'] ) ) {