Changeset 5132 for trunk/calendar/inc/class.boholiday.inc.php
- Timestamp:
- 11/03/11 13:21:19 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.boholiday.inc.php
r3914 r5132 256 256 } 257 257 // echo 'Loading from: '.$load_from.'/holidays.'.strtoupper($locale).'.csv'."<br>\n"; 258 if(isset($GLOBALS['phpgw_info']['server']['holidays_url_path']) && $GLOBALS['phpgw_info']['server']['holidays_url_path'] != 'localhost')259 {260 258 $lines = $network->gethttpsocketfile($load_from.'/holidays.'.strtoupper($locale).'.csv'); 261 }262 else263 {264 $lines = explode(chr(0x0A),file_get_contents($load_from.'/holidays.'.strtoupper($locale).'.csv'));265 }266 259 if (!$lines) 267 260 { … … 296 289 function add() 297 290 { 298 if(@$_POST['submit'])299 {300 291 $holiday = $_POST['holiday']; 292 293 301 294 302 295 if(empty($holiday['mday'])) … … 349 342 } 350 343 } 351 }352 344 353 345 function sort_holidays_by_date($holidays)
Note: See TracChangeset
for help on using the changeset viewer.