forked from extern/egroupware
fix for bug [ 1448778 ] failed to open stream: No such file or directory
--> quitend error message if using localhost and no holidays are availible for a country
This commit is contained in:
parent
60aed02c8c
commit
4d8837f848
@ -288,7 +288,7 @@
|
||||
// echo 'Loading from: '.$load_from.'/holidays.'.strtoupper($locale).'.csv'."<br>\n";
|
||||
if($GLOBALS['egw_info']['server']['holidays_url_path'] == 'localhost')
|
||||
{
|
||||
$lines = file(EGW_SERVER_ROOT.'/calendar/egroupware.org/holidays.'.strtoupper($locale).'.csv');
|
||||
$lines = @file(EGW_SERVER_ROOT.'/calendar/egroupware.org/holidays.'.strtoupper($locale).'.csv');
|
||||
}
|
||||
else
|
||||
$lines = $network->gethttpsocketfile($load_from.'/holidays.'.strtoupper($locale).'.csv');
|
||||
|
Loading…
Reference in New Issue
Block a user