projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A bit more progress on roles revamp.
[timetracker.git]
/
WEB-INF
/
lib
/
I18n.class.php
diff --git
a/WEB-INF/lib/I18n.class.php
b/WEB-INF/lib/I18n.class.php
index
a9f1b43
..
7155edb
100644
(file)
--- 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) {
// TODO: refactoring ongoing down from here...
function getWeekDayName($id) {
- $id =
intval($id)
;
+ $id =
(int) $id
;
return $this->weekdayNames[$id];
}
return $this->weekdayNames[$id];
}
@@
-70,9
+70,9
@@
class I18n {
$this->weekdayNames = $i18n_weekdays;
$this->weekdayShortNames = $i18n_weekdays_short;
$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;
$this->holidays = $i18n_holidays;
- }
+
//
}
foreach ($i18n_key_words as $kword=>$value) {
$pos = strpos($kword, ".");
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;
$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;
$this->holidays = $i18n_holidays;
- }
+
//
}
foreach ($i18n_key_words as $kword=>$value) {
if (!$value) continue;
$pos = strpos($kword, ".");
foreach ($i18n_key_words as $kword=>$value) {
if (!$value) continue;
$pos = strpos($kword, ".");