From 56382e2c1a953f4032d16a9215bd71324a8781b8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 21 Aug 2006 08:03:32 +0000 Subject: [PATCH] fixed not working holidays after the old sbox class has been removed from the API --- calendar/inc/class.boholiday.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.boholiday.inc.php b/calendar/inc/class.boholiday.inc.php index af658170d5..add4bc7423 100755 --- a/calendar/inc/class.boholiday.inc.php +++ b/calendar/inc/class.boholiday.inc.php @@ -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']) {