}
// 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"';
function _getActiveDates($start, $end) {
global $user;
- $user_id = $user->getActiveUser();
+ $user_id = $user->getUser();
$table = ($this->highlight == 'expenses') ? 'tt_expense_items' : 'tt_log';