Save drafts on expired session for all views
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 6 Aug 2009 18:50:41 +0000 (12:50 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 6 Aug 2009 20:59:50 +0000 (14:59 -0600)
imp/compose.php
imp/lib/base.php

index b866322..bf954e6 100644 (file)
@@ -56,7 +56,6 @@ function _getIMPContents($index, $mailbox)
 }
 
 
-$imp_compose_page = true;
 $imp_session_control = 'netscape';
 require_once dirname(__FILE__) . '/lib/base.php';
 
index 7a7dd61..ad72db9 100644 (file)
@@ -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();
         }