Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add some arguments to the logout_after hook

  • Loading branch information...
commit 7ef47e59a952b554f615ec96abb471c21a1b4e86 1 parent d002607
@thomascube thomascube authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  index.php
View
3  index.php
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.