From b528d8e77c44abd161813901085c7051da83d00b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 5 Mar 2007 04:47:42 +0000 Subject: [PATCH] r1429: Refactoring Authentication::_clearCookies() to be clearCookies() --- includes/auth/auth.php | 8 ++++---- includes/auth/auth_default.php | 2 +- includes/auth/auth_vbulletin.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/auth/auth.php b/includes/auth/auth.php index 14c3539..cbe5880 100644 --- a/includes/auth/auth.php +++ b/includes/auth/auth.php @@ -149,7 +149,7 @@ class Authentication { if (!$this->_fetchCookieUniqueId() OR !$this->_fetchCookiePassword()) { - $this->_clearCookies(); + $this->clearCookies(); return false; } @@ -158,7 +158,7 @@ class Authentication if (!$this->authUser) { $this->authUser = null; - $this->_clearCookies(); + $this->clearCookies(); return false; } @@ -172,7 +172,7 @@ class Authentication else { $this->authUser = null; - $this->_clearCookies(); + $this->clearCookies(); return false; } } @@ -308,7 +308,7 @@ class Authentication * Responsible for unsetting all authentication cookies because they * are invalid */ - function _clearCookies() {} + function clearCookies() {} // ################################################################### /** diff --git a/includes/auth/auth_default.php b/includes/auth/auth_default.php index da0a295..a314ab9 100644 --- a/includes/auth/auth_default.php +++ b/includes/auth/auth_default.php @@ -72,7 +72,7 @@ class AuthenticationDefault extends Authentication } // ################################################################### - function _clearCookies() + function clearCookies() { $this->registry->funct->cookie(COOKIE_PREFIX . 'userid'); $this->registry->funct->cookie(COOKIE_PREFIX . 'authkey'); diff --git a/includes/auth/auth_vbulletin.php b/includes/auth/auth_vbulletin.php index cd24b29..c299748 100644 --- a/includes/auth/auth_vbulletin.php +++ b/includes/auth/auth_vbulletin.php @@ -99,7 +99,7 @@ class AuthenticationVbulletin extends Authentication } // ################################################################### - function _clearCookies() + function clearCookies() { $this->registry->funct->cookie('bbpassword'); $this->registry->funct->cookie('bbuserid'); -- 2.22.5