mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
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