Skip to content

Commit

Permalink
Add some arguments to the logout_after hook
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Aug 14, 2009
1 parent d002607 commit 7ef47e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@

// end session
else if ($RCMAIL->task=='logout' && isset($_SESSION['user_id'])) {
$userdata = array('user' => $_SESSION['username'], 'host' => $_SESSION['imap_host'], 'lang' => $RCMAIL->user->language);
$OUTPUT->show_message('loggedout');
$RCMAIL->logout_actions();
$RCMAIL->kill_session();
$RCMAIL->plugins->exec_hook('logout_after', array());
$RCMAIL->plugins->exec_hook('logout_after', $userdata);
}

// check session and auth cookie
Expand Down

0 comments on commit 7ef47e5

Please sign in to comment.