replace deprecated method calls.

This commit is contained in:
Niles 2009-09-11 06:58:23 -04:00
parent 26a4349e5a
commit b9970f7484

View file

@ -678,8 +678,8 @@ class AuthComponent extends Object {
*/ */
function logout() { function logout() {
$this->__setDefaults(); $this->__setDefaults();
$this->Session->del($this->sessionKey); $this->Session->delete($this->sessionKey);
$this->Session->del('Auth.redirect'); $this->Session->delete('Auth.redirect');
$this->_loggedIn = false; $this->_loggedIn = false;
return Router::normalize($this->logoutRedirect); return Router::normalize($this->logoutRedirect);
} }
@ -915,7 +915,7 @@ class AuthComponent extends Object {
*/ */
function shutdown(&$controller) { function shutdown(&$controller) {
if ($this->_loggedIn) { if ($this->_loggedIn) {
$this->Session->del('Auth.redirect'); $this->Session->delete('Auth.redirect');
} }
} }
} }