fixed not working holidays after the old sbox class has been removed from the API

This commit is contained in:
Ralf Becker 2006-08-21 08:03:32 +00:00
parent be7cca8a44
commit 56382e2c1a

View File

@ -463,9 +463,11 @@
{
return false;
}
$sbox =& CreateObject('phpgwapi.sbox');
$month = $holiday['month'] ? lang($sbox->monthnames[$holiday['month']]) : '';
unset($sbox);
$monthnames = array(
'','January','February','March','April','May','June',
'July','August','September','October','November','December'
);
$month = $holiday['month'] ? lang($monthnames[$holiday['month']]) : '';
if (!$holiday['day'])
{