From 4591de7018414267311b421ef42ef1b4a2f6aa89 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Thu, 10 Mar 2011 15:21:21 -0500 Subject: [PATCH] Prepare for multiple concurrent compose windows --- program/steps/mail/func.inc | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 0903176..18ef2de 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1419,14 +1419,14 @@ /** * clear message composing settings */ -function rcmail_compose_cleanup() +function rcmail_compose_cleanup($id) { - if (!isset($_SESSION['compose'])) + if (!isset($_SESSION['compose_data'][$id])) return; $rcmail = rcmail::get_instance(); - $rcmail->plugins->exec_hook('attachments_cleanup', array()); - $rcmail->session->remove('compose'); + $rcmail->plugins->exec_hook('attachments_cleanup', array('group' => $id)); + unset($_SESSION['compose_data'][$id]); } -- Gitblit v1.9.1