Skip to content

Commit

Permalink
replace deprecated method calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niles committed Sep 11, 2009
1 parent 26a4349 commit b9970f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cake/libs/controller/components/auth.php
Expand Up @@ -678,8 +678,8 @@ function login($data = null) {
*/
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);
}
Expand Down Expand Up @@ -915,7 +915,7 @@ function password($password) {
*/
function shutdown(&$controller) {
if ($this->_loggedIn) {
$this->Session->del('Auth.redirect');
$this->Session->delete('Auth.redirect');
}
}
}
Expand Down

0 comments on commit b9970f7

Please sign in to comment.