Changeset 3914
- Timestamp:
- 03/25/11 13:47:32 (12 years ago)
- Location:
- branches/2.2/calendar/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/calendar/inc/class.boholiday.inc.php
r2 r3914 256 256 } 257 257 // echo 'Loading from: '.$load_from.'/holidays.'.strtoupper($locale).'.csv'."<br>\n"; 258 $lines = $network->gethttpsocketfile($load_from.'/holidays.'.strtoupper($locale).'.csv'); 258 if(isset($GLOBALS['phpgw_info']['server']['holidays_url_path']) && $GLOBALS['phpgw_info']['server']['holidays_url_path'] != 'localhost') 259 { 260 $lines = $network->gethttpsocketfile($load_from.'/holidays.'.strtoupper($locale).'.csv'); 261 } 262 else 263 { 264 $lines = explode(chr(0x0A),file_get_contents($load_from.'/holidays.'.strtoupper($locale).'.csv')); 265 } 259 266 if (!$lines) 260 267 { -
branches/2.2/calendar/inc/class.uicalendar.inc.php
r3910 r3914 392 392 { 393 393 //NDEE: class def what for? 394 $str = '<a href="'.$this->page($params['link'],'&date='.$date).'" class="'.$day_params['class'].'">'.$day.'</a>';394 $str = '<a href="'.$this->page($params['link'],'&date='.$date).'" class="'.$day_params['class'].'" ' . ($day_params['class']=='bminicalhol' || $day_params['class']=='minicalhol'?' title="' . $day_params['holidays'][0] . '" ' :'') . ' >'.$day.'</a>'; 395 395 } 396 396 else … … 545 545 $minical_next = ''; 546 546 } 547 547 $this->bo->read_holidays($params['year']); 548 548 if($_POST['year']) { 549 549 … … 666 666 if (isset($this->bo->prefs['calendar']['display_minicals']) && $this->bo->prefs['calendar']['display_minicals'] == "1" && !$this->bo->printer_friendly) 667 667 { 668 $minical_this = $this->mini_calendar(669 Array(670 'day' => $this->bo->day,671 'month' => $this->bo->month,672 'year' => $this->bo->year,673 'link' => 'day',674 'butons' => 'none',675 'outside_month' => False676 )677 );678 668 $minical_prev = $this->mini_calendar( 679 669 Array( … … 693 683 'link' => 'day', 694 684 'butons' => 'right', 685 'outside_month' => False 686 ) 687 ); 688 $minical_this = $this->mini_calendar( 689 Array( 690 'day' => $this->bo->day, 691 'month' => $this->bo->month, 692 'year' => $this->bo->year, 693 'link' => 'day', 694 'butons' => 'none', 695 695 'outside_month' => False 696 696 ) … … 5773 5773 $appts = False; 5774 5774 } 5775 5776 5775 $holidays = $this->bo->cached_holidays[$date]; 5777 5776 if($weekly)
Note: See TracChangeset
for help on using the changeset viewer.