X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FI18n.class.php;h=7155edb0c2b2c855bf1cb255a4a55ce100b99910;hb=074e8daef75c2b729e75f350b52935a6b7ecfba8;hp=a9f1b43494c3fae36eae4f85071589552ed9090c;hpb=765181f88bd61e74e2836d1ede6465945e2226cf;p=timetracker.git diff --git a/WEB-INF/lib/I18n.class.php b/WEB-INF/lib/I18n.class.php index a9f1b434..7155edb0 100644 --- a/WEB-INF/lib/I18n.class.php +++ b/WEB-INF/lib/I18n.class.php @@ -54,7 +54,7 @@ class I18n { // TODO: refactoring ongoing down from here... function getWeekDayName($id) { - $id = intval($id); + $id = (int) $id; return $this->weekdayNames[$id]; } @@ -70,9 +70,9 @@ class I18n { $this->weekdayNames = $i18n_weekdays; $this->weekdayShortNames = $i18n_weekdays_short; - if (defined('SHOW_HOLIDAYS') && isTrue(SHOW_HOLIDAYS)) { +// if (defined('SHOW_HOLIDAYS') && isTrue(SHOW_HOLIDAYS)) { $this->holidays = $i18n_holidays; - } +// } foreach ($i18n_key_words as $kword=>$value) { $pos = strpos($kword, "."); @@ -97,9 +97,9 @@ class I18n { $this->monthNames = $i18n_months; $this->weekdayNames = $i18n_weekdays; $this->weekdayShortNames = $i18n_weekdays_short; - if (defined('SHOW_HOLIDAYS') && isTrue(SHOW_HOLIDAYS)) { +// if (defined('SHOW_HOLIDAYS') && isTrue(SHOW_HOLIDAYS)) { $this->holidays = $i18n_holidays; - } +// } foreach ($i18n_key_words as $kword=>$value) { if (!$value) continue; $pos = strpos($kword, ".");