From: Jan Schneider Date: Fri, 26 Feb 2010 13:37:12 +0000 (+0100) Subject: We don't have a work-week view yet, fall back to work view. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=38af4a78f39165aae8e1094b1d19d0bc6a7cb216;p=horde.git We don't have a work-week view yet, fall back to work view. --- diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 83872350c..33efecfec 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -197,7 +197,7 @@ class Kronolith 'name' => $registry->get('name'), 'has_tasks' => $has_tasks, 'is_ie6' => ($GLOBALS['browser']->isBrowser('msie') && ($GLOBALS['browser']->getMajor() < 7)), - 'login_view' => $prefs->getValue('defaultview'), + 'login_view' => $prefs->getValue('defaultview') == 'workweek' ? 'week' : $prefs->getValue('defaultview'), 'default_calendar' => 'internal|' . self::getDefaultCalendar(Horde_Perms::EDIT), 'week_start' => (int)$prefs->getValue('week_start_monday'), 'date_format' => str_replace(array('%e', '%d', '%a', '%A', '%m', '%h', '%b', '%B', '%y', '%Y'),