remove remember_last_file preference (I thought we'd done this a while ago)
authorChuck Hagenbuch <chuck@bluestatedigital.com>
Fri, 24 Jul 2009 21:30:41 +0000 (17:30 -0400)
committerChuck Hagenbuch <chuck@bluestatedigital.com>
Fri, 24 Jul 2009 21:30:41 +0000 (17:30 -0400)
chora/config/prefs.php.dist
chora/lib/Chora.php

index 63e22d9..df87aa7 100644 (file)
@@ -27,12 +27,3 @@ $_prefs['last_sourceroot'] = array(
     'shared' => false,
     'type' => 'implicit'
 );
-
-// show the last login time of user
-$_prefs['remember_last_file'] = array(
-    'value' => 1,
-    'locked' => false,
-    'shared' => false,
-    'type' => 'checkbox',
-    'desc' => _("Use last viewed file or directory at login time")
-);
index 4a0fe23..1dd17bb 100644 (file)
@@ -70,17 +70,11 @@ class Chora
 
         /* Use the last sourceroot used as the default value if the user has
          * that preference. */
-        if ($remember = $GLOBALS['prefs']->getValue('remember_last_file')) {
-            $last_file = $GLOBALS['prefs']->getValue('last_file')
-                ? $GLOBALS['prefs']->getValue('last_file')
-                : null;
-            $last_sourceroot = $GLOBALS['prefs']->getValue('last_sourceroot')
-                ? $GLOBALS['prefs']->getValue('last_sourceroot')
-                : null;
-        }
+        $last_sourceroot = $GLOBALS['prefs']->getValue('last_sourceroot')
+            ? $GLOBALS['prefs']->getValue('last_sourceroot')
+            : null;
 
-        if ($remember &&
-            !empty($last_sourceroot) &&
+        if (!empty($last_sourceroot) &&
             !empty($sourceroots[$last_sourceroot]) &&
             is_array($sourceroots[$last_sourceroot])) {
             $defaultActs['rt'] = $last_sourceroot;
@@ -115,7 +109,7 @@ class Chora
         if (empty($GLOBALS['conf']['caching'])) {
             $cache = null;
         } else {
-            $cache = &Horde_Cache::singleton($GLOBALS['conf']['cache']['driver'], Horde::getDriverConfig('cache', $GLOBALS['conf']['cache']['driver']));
+            $cache = Horde_Cache::singleton($GLOBALS['conf']['cache']['driver'], Horde::getDriverConfig('cache', $GLOBALS['conf']['cache']['driver']));
         }
 
         $GLOBALS['conf']['paths']['temp'] = Horde::getTempDir();