Fixed holidays display for subgroups.
authorNik Okuntseff <support@anuko.com>
Fri, 26 Apr 2019 16:51:30 +0000 (16:51 +0000)
committerNik Okuntseff <support@anuko.com>
Fri, 26 Apr 2019 16:51:30 +0000 (16:51 +0000)
WEB-INF/lib/form/Calendar.class.php
WEB-INF/templates/footer.tpl

index 6c4a422..a8455a8 100644 (file)
@@ -172,9 +172,8 @@ class Calendar extends FormElement {
             }
 
               // holidays
-              //if ($this->showHolidays) {
               global $user;
-              if ($user->show_holidays) {
+              if ($user->isOptionEnabled('show_holidays')) {
               foreach ($this->holidays as $day) {
                 if($day == $date) {
                   $stl_cell = ' class="CalendarDayHoliday"';
index e806ad8..c4dd479 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.19.3.4987 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.19.3.4988 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>