Changeset 4195
- Timestamp:
- 05/03/11 09:05:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php
r4184 r4195 1684 1684 $GLOBALS['phpgw']->preferences->save_repository(); 1685 1685 } 1686 $increment = $this->bo->prefs['calendar']['interval']; 1686 if($this->bo->prefs['calendar']['interval'] == '42') 1687 { 1688 $increment = 30; 1689 } 1690 elseif($this->bo->prefs['calendar']['interval'] == '84') 1691 { 1692 $increment = 15; 1693 } 1687 1694 $interval = (int)(60 / $increment); 1688 1695 … … 5070 5077 5071 5078 $templateSet = $GLOBALS['phpgw_info']['server']['template_set']; 5072 5079 5073 5080 $p->set_file($templates); 5074 5081 $p->set_block('day_cal','day','day'); … … 5265 5272 function print_events_to_show_json($params) 5266 5273 { 5274 5275 if( (!isset($this->bo->prefs['calendar']['interval'])) || ( (isset($this->bo->prefs['calendar']['interval'])) && ( ($this->bo->prefs['calendar']['interval'] != 42) || ($this->bo->prefs['calendar']['interval'] != 84) ) ) ) 5276 { 5277 $this->bo->prefs['calendar']['interval'] = 42; 5278 $GLOBALS['phpgw']->preferences->add('calendar','interval',42); 5279 $GLOBALS['phpgw']->preferences->save_repository(); 5280 } 5281 5267 5282 if(!is_array($params)) 5268 5283 {
Note: See TracChangeset
for help on using the changeset viewer.