Permalink
Browse files

Add some arguments to the logout_after hook

  • Loading branch information...
1 parent d002607 commit 7ef47e59a952b554f615ec96abb471c21a1b4e86 @thomascube thomascube committed Aug 14, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 index.php
View
@@ -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

0 comments on commit 7ef47e5

Please sign in to comment.