From 6380ce5acad1e2911e44db3d339183646e3963ac Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Tue, 27 Mar 2018 15:16:08 +0000 Subject: [PATCH] Fixed page title. --- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/header.tpl | 4 ++++ profile_edit.php | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 37e220f6..31553a4f 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.76.4185 | Copyright © Anuko | +  Anuko Time Tracker 1.17.76.4186 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/header.tpl b/WEB-INF/templates/header.tpl index 97ee53da..ac6e99fe 100644 --- a/WEB-INF/templates/header.tpl +++ b/WEB-INF/templates/header.tpl @@ -154,7 +154,11 @@ {if $title} + {if $user->name} + {else} + + {/if}
{$title}{if $timestring}: {$timestring}{/if}
{$user->name|escape} - {$user->role_name|escape}{if $user->behalf_id > 0} {$i18n.label.on_behalf} {$user->behalf_name|escape}{/if}{if $user->team}, {$user->team|escape}{/if}
 
{/if} diff --git a/profile_edit.php b/profile_edit.php index 9c27ab41..2fed4f6b 100644 --- a/profile_edit.php +++ b/profile_edit.php @@ -31,11 +31,12 @@ import('form.Form'); import('ttUserHelper'); import('ttRoleHelper'); -// Access check. +// Access checks. if (!ttAccessAllowed('manage_own_settings')) { header('Location: access_denied.php'); exit(); } +// End of access checks. if (!defined('CURRENCY_DEFAULT')) define('CURRENCY_DEFAULT', '$'); $can_change_login = $user->canManageTeam(); -- 2.20.1