[Svn] r1949 - trunk/roundcubemail/program/steps/mail
trac at roundcube.net
trac at roundcube.net
Tue Oct 7 08:24:19 CEST 2008
Author: alec
Date: 2008-10-07 01:24:18 -0500 (Tue, 07 Oct 2008)
New Revision: 1949
Modified:
trunk/roundcubemail/program/steps/mail/compose.inc
Log:
- #1485471: fix drafts saving
Modified: trunk/roundcubemail/program/steps/mail/compose.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/compose.inc 2008-10-06 19:49:19 UTC (rev 1948)
+++ trunk/roundcubemail/program/steps/mail/compose.inc 2008-10-07 06:24:18 UTC (rev 1949)
@@ -83,8 +83,11 @@
// add some labels to client
$OUTPUT->add_label('nosubject', 'nosenderwarning', 'norecipientwarning', 'nosubjectwarning', 'nobodywarning', 'notsentwarning', 'savingmessage', 'sendingmessage', 'messagesaved', 'converting');
-// add config parameter to client script
-$OUTPUT->set_env('draft_autosave', !empty($CONFIG['drafts_mbox']) ? $CONFIG['draft_autosave'] : 0);
+// add config parameters to client script
+if (!empty($CONFIG['drafts_mbox'])) {
+ $OUTPUT->set_env('drafts_mailbox', $CONFIG['drafts_mbox']);
+ $OUTPUT->set_env('draft_autosave', $CONFIG['draft_autosave']);
+}
// set current mailbox in client environment
$OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name());
_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn
More information about the Svn
mailing list