From: Sam Reed Date: Mon, 18 Jul 2011 22:01:40 +0000 (+0000) Subject: It seems people don't either pay attention to code comments, or those comments lie X-Git-Tag: 1.31.0-rc.0~28760 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=1116a5fcd11bb927377e89c7f5934927952febae;p=lhc%2Fweb%2Fwiklou.git It seems people don't either pay attention to code comments, or those comments lie r92461 --- diff --git a/includes/User.php b/includes/User.php index 5685d9d67f..3d273c4c0c 100644 --- a/includes/User.php +++ b/includes/User.php @@ -282,7 +282,7 @@ class User { * Load user table data, given mId has already been set. * @return Bool false if the ID does not exist, true otherwise */ - private function loadFromId() { + public function loadFromId() { global $wgMemc; if ( $this->mId == 0 ) { $this->loadDefaults(); @@ -859,7 +859,7 @@ class User { * * @param $name string */ - private function loadDefaults( $name = false ) { + public function loadDefaults( $name = false ) { wfProfileIn( __METHOD__ ); $this->mId = 0; @@ -1016,7 +1016,7 @@ class User { * * @return Bool True if the user exists, false if the user is anonymous */ - private function loadFromDatabase() { + public function loadFromDatabase() { # Paranoia $this->mId = intval( $this->mId ); @@ -2758,7 +2758,7 @@ class User { * Clear the user's cookies and session, and reset the instance cache. * @see logout() */ - private function doLogout() { + public function doLogout() { $this->clearInstanceCache( 'defaults' ); $this->getRequest()->setSessionData( 'wsUserID', 0 );