Made show_holidays configurable as per issue #53.
[timetracker.git] / WEB-INF / lib / form / Calendar.class.php
index 1340c98..555b6e1 100644 (file)
@@ -172,7 +172,9 @@ class Calendar extends FormElement {
             }
 
               // holidays
-              if ($this->showHolidays) {
+              //if ($this->showHolidays) {
+              global $user;
+              if ($user->show_holidays) {
               foreach ($this->holidays as $day) {
                 if($day == $date) {
                   $stl_cell = ' class="CalendarDayHoliday"';