Improved efficiency by not going through file system again.
}
$lang_parts = explode('-', trim($lang_pref_parts[0]));
$lang_main = $lang_parts[0];
- if ($this->hasLang($lang_main)) {
+ if ($lang_main != $lang_pref_parts[0] && $this->hasLang($lang_main)) {
return $lang_main; // Return main language designation, such as pt.
}
}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.9.24.3486 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.9.24.3487 | 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>