diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index db3374dfcd..1ff23f3ef3 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -142,7 +142,7 @@ class calendar_so */ protected function cal_range_view($start, $end, array $_where=null, $deleted=false) { - if (!$start) // using view without start-date is slower! + if ($GLOBALS['egw_info']['server']['no_timerange_views'] || !$start) // using view without start-date is slower! { return $this->cal_table; // no need / use for a view } @@ -172,7 +172,7 @@ class calendar_so */ protected function dates_range_view($start, $end, array $_where=null, $deleted=false) { - if (!$start || !$end) // using view without start- AND end-date is slower! + if ($GLOBALS['egw_info']['server']['no_timerange_views'] || !$start || !$end) // using view without start- AND end-date is slower! { return $this->dates_table; // no need / use for a view } diff --git a/calendar/templates/default/config.tpl b/calendar/templates/default/config.tpl index 3009886b71..4187e0779b 100644 --- a/calendar/templates/default/config.tpl +++ b/calendar/templates/default/config.tpl @@ -9,13 +9,6 @@ -