diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-24 00:50:54 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-24 00:50:54 +0000 |
commit | 9c1e6d6463937bdee2d1de9735463a69f8af305d (patch) | |
tree | 8ae66e2c9533ebf21fcf6c1b96be58b140681b7b /engine/lib/sessions.php | |
parent | 9f8dfe11118813e0f4c2808abb012171db61ec52 (diff) | |
download | elgg-9c1e6d6463937bdee2d1de9735463a69f8af305d.tar.gz elgg-9c1e6d6463937bdee2d1de9735463a69f8af305d.tar.bz2 |
Fixes #2655: Converted register_action to elgg_register_action throughout core
git-svn-id: http://code.elgg.org/elgg/trunk@7432 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sessions.php')
-rw-r--r-- | engine/lib/sessions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php index 5cb3e8260..4cdc9bcce 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -369,7 +369,7 @@ function logout() { unset($_SESSION['guid']); unset($_SESSION['id']); unset($_SESSION['user']); - + setcookie("elggperm", "", (time() - (86400 * 30)), "/"); // pass along any messages @@ -466,8 +466,8 @@ function session_init($event, $object_type, $object) { set_last_action($_SESSION['guid']); } - register_action("login", true); - register_action("logout"); + elgg_register_action("login", '', 'public'); + elgg_register_action("logout"); // Register a default PAM handler register_pam_handler('pam_auth_userpass'); |