diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-10 20:21:21 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-10 20:21:21 +0000 |
| commit | 0b178f16f1a1139a45cc5478bd2ed3e992a61bc8 (patch) | |
| tree | cdb2813617b7e39f05000b4176cf5882b89e4dd5 /roundcubemail/program/steps/mail/func.inc | |
| parent | b4cc1c43649302683aeb406c80fe8566f383d959 (diff) | |
Prepare for multiple concurrent compose windows
git-svn-id: https://svn.roundcube.net/trunk@4604 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/func.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 090317691..18ef2de68 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -1419,14 +1419,14 @@ function rcmail_message_part_frame($attrib) /** * 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]); } |
