From: Michael M Slusarz Date: Thu, 6 Aug 2009 18:50:41 +0000 (-0600) Subject: Save drafts on expired session for all views X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a39b0ed99ec7fd2d25ceaff9fb7171a3a166638f;p=horde.git Save drafts on expired session for all views --- diff --git a/imp/compose.php b/imp/compose.php index b8663221b..bf954e6e9 100644 --- a/imp/compose.php +++ b/imp/compose.php @@ -56,7 +56,6 @@ function _getIMPContents($index, $mailbox) } -$imp_compose_page = true; $imp_session_control = 'netscape'; require_once dirname(__FILE__) . '/lib/base.php'; diff --git a/imp/lib/base.php b/imp/lib/base.php index 7a7dd6196..ad72db95b 100644 --- a/imp/lib/base.php +++ b/imp/lib/base.php @@ -12,7 +12,6 @@ * Horde_Exception * [DEFAULT] - Authenticate to IMAP/POP server; on no auth redirect to login * screen - * $imp_compose_page - If true, we are on IMP's compose page * $imp_no_compress - Controls whether the page should be compressed * $imp_session_control - Sets special session control limitations: * 'netscape' - TODO; start read/write session @@ -73,7 +72,7 @@ try { $registry->pushApp('imp', array('check_perms' => ($authentication != 'none'), 'logintasks' => true)); } catch (Horde_Exception $e) { if ($e->getCode() == Horde_Registry::AUTH_FAILURE) { - if (Horde_Util::nonInputVar('imp_compose_page')) { + if (Horde_Util::getFormData('composeCache')) { $imp_compose = IMP_Compose::singleton(); $imp_compose->sessionExpireDraft(); }