<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.38.4055 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.38.4056 | 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>
// Create an instance of ttUser class. This gets us most of user details.
import('ttUser');
$user = new ttUser(null, $auth->getUserId());
-// Temporary code to assign role_id to users who don't yet have it.
-/*
-if ($user->login && !$user->role_id) {
- $user->migrateLegacyRole();
- // Recycle User object, now with proper role_id.
- $user = new ttUser(null, $auth->getUserId());
-}*/
if ($user->custom_logo) {
$smarty->assign('custom_logo', 'images/'.$user->team_id.'.png');
$smarty->assign('mobile_custom_logo', '../images/'.$user->team_id.'.png');
// Load i18n file.
$i18n->load($lang);
+// Temporary code to assign role_id to users who don't yet have it.
+if ($user->login && !$user->role_id) {
+ $user->migrateLegacyRole(); // Note: this requires initialized $i18n.
+ // Recycle User object, now with proper role_id.
+ $user = new ttUser(null, $auth->getUserId());
+}
+
// Assign things for smarty to use in template files.
$smarty->assign('i18n', $i18n->keys);
$smarty->assign('err', $err);