From: Tim Starling Date: Thu, 23 Sep 2004 15:43:25 +0000 (+0000) Subject: More consistent method for immediate logout, means that the IP rather than the userna... X-Git-Tag: 1.5.0alpha1~1841 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=8ceee070ad5bc0e94efcba30844f0d31b9a86680;p=lhc%2Fweb%2Fwiklou.git More consistent method for immediate logout, means that the IP rather than the username is displayed at the top of the logout confirmation page. --- diff --git a/includes/User.php b/includes/User.php index e9eeca7148..d2e76546ee 100644 --- a/includes/User.php +++ b/includes/User.php @@ -679,7 +679,8 @@ class User { */ function logout() { global $wgCookiePath, $wgCookieDomain, $wgDBname; - $this->mId = 0; + $this->loadDefaults(); + $this->setLoaded( true ); $_SESSION['wsUserID'] = 0;