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