Method User::loadFromSession() is private. If you want to create a user
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 25 Apr 2007 20:00:18 +0000 (20:00 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 25 Apr 2007 20:00:18 +0000 (20:00 +0000)
object from a session, use the static method User::newFromSession().

includes/User.php

index cfb665a..ec3b805 100644 (file)
@@ -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'] ) ) {