*/
function preprocessFormatString($format) {
global $i18n;
- if (isset($GLOBALS['i18n'])) {
- // replace locale-dependent strings
- $format = str_replace('%a', mb_substr($i18n->getWeekDayName($this->mDay), 0, 3, 'utf-8'), $format);
- $format = str_replace('%A', $i18n->getWeekDayName($this->mDay), $format);
- $abbrev_month = mb_substr($i18n->monthNames[$this->mMonth], 0, 3, 'utf-8');
- $format = str_replace('%b', $abbrev_month, $format);
- $format = str_replace('%h', $abbrev_month, $format);
- $format = str_replace('%z', date('O'), $format);
- $format = str_replace('%Z', date('O'), $format); // format as 'O' for consistency with JS strftime
- if (strpos($format, '%c') !== false) {
- $format = str_replace('%c', $this->preprocessFormatString('%a %d %b %Y %T %Z'), $format);
- }
+
+ // replace locale-dependent strings
+ $format = str_replace('%a', mb_substr($i18n->getWeekDayName($this->mDay), 0, 3, 'utf-8'), $format);
+ $format = str_replace('%A', $i18n->getWeekDayName($this->mDay), $format);
+ $abbrev_month = mb_substr($i18n->monthNames[$this->mMonth], 0, 3, 'utf-8');
+ $format = str_replace('%b', $abbrev_month, $format);
+ $format = str_replace('%h', $abbrev_month, $format);
+ $format = str_replace('%z', date('O'), $format);
+ $format = str_replace('%Z', date('O'), $format); // format as 'O' for consistency with JS strftime
+ if (strpos($format, '%c') !== false) {
+ $format = str_replace('%c', $this->preprocessFormatString('%a %d %b %Y %T %Z'), $format);
}
return $format;
}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.13.15.3744 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.13.15.3745 | Copyright © <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>