[Svn] r2859 - trunk/roundcubemail

trac at roundcube.net trac at roundcube.net
Fri Aug 14 09:59:00 CEST 2009


Author: thomasb
Date: 2009-08-14 02:59:00 -0500 (Fri, 14 Aug 2009)
New Revision: 2859

Modified:
   trunk/roundcubemail/index.php
Log:
Add some arguments to the logout_after hook

Modified: trunk/roundcubemail/index.php
===================================================================
--- trunk/roundcubemail/index.php	2009-08-14 07:52:26 UTC (rev 2858)
+++ trunk/roundcubemail/index.php	2009-08-14 07:59:00 UTC (rev 2859)
@@ -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

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list