X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FCalendar.class.php;h=a64a0359d0969221410fe7031d8afe4ebe093738;hb=cb8e3de960b758147b34d8323054e7de70548619;hp=811a3fc5274af309b35f28942350b9673eb906b6;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/lib/form/Calendar.class.php b/WEB-INF/lib/form/Calendar.class.php index 811a3fc5..a64a0359 100644 --- a/WEB-INF/lib/form/Calendar.class.php +++ b/WEB-INF/lib/form/Calendar.class.php @@ -47,7 +47,7 @@ class Calendar extends FormElement { // var $mAllDays = true; var $cClassName = "Calendar"; - function Calendar($name) { + function __construct($name) { $this->controlName = $name; $this->mMonthNames = array('January','February','March','April','May','June','July','August','September','October','November','December'); $this->mWeekDayShortNames = array('Su','Mo','Tu','We','Th','Fr','Sa'); @@ -90,7 +90,7 @@ class Calendar extends FormElement { function toString($date="") { global $i18n; - $indate = $this->mValue; + $indate = $this->value; if (!$indate) $indate = strftime(DB_DATEFORMAT); if (!$this->isRenderable()) return ""; @@ -166,7 +166,7 @@ class Calendar extends FormElement { $stl_cell = ""; $stl_link = ""; - // weeekend + // weekend if ($j==$weekend_start || $j==$weekend_end) { $stl_cell = ' class="CalendarDayWeekend"'; $stl_link = ' class="CalendarLinkWeekend"'; @@ -281,4 +281,3 @@ class Calendar extends FormElement { return false; } } -?> \ No newline at end of file