X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/1078c4da84d79f93ef7f8bbffc5f0c8cb2a1a274..a8967b288d201edff6e4f87e7b0bccb1bf55c483:/WEB-INF/lib/form/Calendar.class.php diff --git a/WEB-INF/lib/form/Calendar.class.php b/WEB-INF/lib/form/Calendar.class.php index a8455a87..447a45e0 100644 --- a/WEB-INF/lib/form/Calendar.class.php +++ b/WEB-INF/lib/form/Calendar.class.php @@ -63,13 +63,7 @@ class Calendar extends FormElement { $this->mMonthNames = $i18n->monthNames; $this->mWeekDayShortNames = $i18n->weekdayShortNames; - if (is_array($i18n->holidays)) { - foreach ($i18n->holidays as $fday) { - $date_a = explode("/",$fday); // format mm/dd - $this->holidays[] = mktime(0,0,0, $date_a[0], $date_a[1], date("Y"));// + 7200; - } - } - $this->weekStartDay = $user->week_start; + $this->weekStartDay = $user->getWeekStart(); } function setStyle($style) { $this->style = $style; } @@ -132,6 +126,8 @@ class Calendar extends FormElement { $str .= "