mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:49:10 +01:00
Extra checking to see if the holiday calculator is found. If not, just load the US caluclator.
This commit is contained in:
parent
9ba26f9b58
commit
0b01efd74f
@ -22,5 +22,13 @@
|
||||
$rule = $phpgw_info['user']['preferences']['common']['country'];
|
||||
}
|
||||
|
||||
include(PHPGW_INCLUDE_ROOT.'/calendar/inc/class.holidaycalc_'.$rule.'.inc.php');
|
||||
$calc_include = PHPGW_INCLUDE_ROOT.'/calendar/inc/class.holidaycalc_'.$rule.'.inc.php';
|
||||
if(@file_exists($calc_include))
|
||||
{
|
||||
include($calc_include);
|
||||
}
|
||||
else
|
||||
{
|
||||
include(PHPGW_INCLUDE_ROOT.'/calendar/inc/class.holidaycalc_US.inc.php');
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user