From 9cfce2e3c14aad3d25c50b12bd7d976e0dd77721 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Wed, 11 Apr 2018 17:37:14 +0000 Subject: [PATCH] Improved a comment explaining class reuse. --- WEB-INF/templates/footer.tpl | 2 +- group_delete.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index e4b69918..05db3fa5 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.88.4253 | Copyright © Anuko | +  Anuko Time Tracker 1.17.88.4254 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/group_delete.php b/group_delete.php index 6aa0d11d..b2977ee4 100644 --- a/group_delete.php +++ b/group_delete.php @@ -42,8 +42,9 @@ if ($user->group_id != $group_id) { } // End of access checks. -// Note: reuse ttAdmin class here, simply because deleting a group -// is a complicated task. +// Note: reuse ttAdmin class here because deleting a group is a complicated task. +// This creates an issue of using the class for not intended purpose. +// However, otherwise we have to duplicate code, so reuse it is, for now. $admin = new ttAdmin(); $group_details = $admin->getGroupDetails($group_id); $group_name = $group_details['group_name']; -- 2.20.1