'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")
-);
/* 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;
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();