More consistent method for immediate logout, means that the IP rather than the userna...
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 23 Sep 2004 15:43:25 +0000 (15:43 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 23 Sep 2004 15:43:25 +0000 (15:43 +0000)
includes/User.php

index e9eeca7..d2e7654 100644 (file)
@@ -679,7 +679,8 @@ class User {
         */
        function logout() {
                global $wgCookiePath, $wgCookieDomain, $wgDBname;
-               $this->mId = 0;
+               $this->loadDefaults();
+               $this->setLoaded( true );
 
                $_SESSION['wsUserID'] = 0;