diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-10 14:48:29 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-10 14:48:29 +0000 |
commit | 5db7ae26689669479b327cd69b5c72ada3d819b9 (patch) | |
tree | 74b5beb5ee8e75df4d16e8fb0a2aa029644f49a5 /engine/lib/sessions.php | |
parent | 005666d19b54d5aef654f96fd7b555d954cf425f (diff) | |
download | elgg-5db7ae26689669479b327cd69b5c72ada3d819b9.tar.gz elgg-5db7ae26689669479b327cd69b5c72ada3d819b9.tar.bz2 |
register_event_handler and trigger_event have been renamed to register_elgg_event_handler and trigger_elgg_event respectively.
git-svn-id: https://code.elgg.org/elgg/trunk@848 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 7a5edec2c..cb7f8c2ba 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -78,7 +78,7 @@ if (($persistent))
setcookie("elggperm", $code, (time()+(86400 * 30)),"/");
- if (!$user->save() || !trigger_event('login','user',$user)) {
+ if (!$user->save() || !trigger_elgg_event('login','user',$user)) {
unset($_SESSION['username']);
unset($_SESSION['name']);
unset($_SESSION['code']);
@@ -102,7 +102,7 @@ global $CONFIG;
if (isset($_SESSION['user'])) {
- if (!trigger_event('logout','user',$_SESSION['user'])) return false;
+ if (!trigger_elgg_event('logout','user',$_SESSION['user'])) return false;
$_SESSION['user']->code = "";
$_SESSION['user']->save();
}
@@ -188,7 +188,7 @@ if (!isloggedin()) forward();
}
- register_event_handler("boot","system","session_init",1);
+ register_elgg_event_handler("boot","system","session_init",1);
?>
\ No newline at end of file |