Ignore:
Timestamp:
03/25/11 13:47:32 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1671 - Feriados não são destacados na visão diária e mensal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/calendar/inc/class.boholiday.inc.php

    r2 r3914  
    256256                                } 
    257257//                              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                                } 
    259266                                if (!$lines) 
    260267                                { 
Note: See TracChangeset for help on using the changeset viewer.