We don't have a work-week view yet, fall back to work view.
authorJan Schneider <jan@horde.org>
Fri, 26 Feb 2010 13:37:12 +0000 (14:37 +0100)
committerJan Schneider <jan@horde.org>
Fri, 26 Feb 2010 14:07:38 +0000 (15:07 +0100)
kronolith/lib/Kronolith.php

index 8387235..33efecf 100644 (file)
@@ -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'),