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 @@ - -   - - - -  {lang_Calendar} {lang_site_configuration} -  {lang_Do_you_wish_to_autoload_calendar_holidays_files_dynamically?} @@ -72,6 +65,15 @@ +  {lang_Use_range-views_to_optimise_calendar_queries?} + + + + +  {lang_Security}: {lang_How_many_appointments_should_non-admins_be_able_to_export} {lang_(empty_=_use_global_limit,_no_=_no_export_at_all)}: