From 3293ee1f5f59dca3c19a9b9ac21dca90e572b8dd Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sun, 15 Apr 2018 18:11:38 +0000 Subject: [PATCH] Cosmetic maintenance fixes. --- WEB-INF/lib/ttTeamHelper.class.php | 4 ++-- WEB-INF/templates/footer.tpl | 2 +- dbinstall.php | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 08fa5bee..631d2120 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -664,9 +664,9 @@ class ttTeamHelper { $inactive_groups = array(); $mdb2 = getConnection(); - // Get all group ids for groups created or modified more than 8 months ago. + // Get all group ids for groups created or modified more than 9 months ago. // $ts = date('Y-m-d', strtotime('-1 year')); - $ts = $mdb2->quote(date('Y-m-d', strtotime('-8 month'))); + $ts = $mdb2->quote(date('Y-m-d', strtotime('-9 month'))); $sql = "select id from tt_groups where created < $ts and (modified is null or modified < $ts) order by id"; $res = $mdb2->query($sql); diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index e1a3e385..f8265031 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.89.4269 | Copyright © Anuko | +  Anuko Time Tracker 1.17.89.4270 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index d5059444..e0973cd7 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -904,13 +904,13 @@ if ($_POST) { if ($_POST["cleanup"]) { $mdb2 = getConnection(); - $inactive_teams = ttTeamHelper::getInactiveGroups(); + $inactive_groups = ttTeamHelper::getInactiveGroups(); - $count = count($inactive_teams); - print "$count inactive teams found...
\n"; + $count = count($inactive_groups); + print "$count inactive groups found...
\n"; for ($i = 0; $i < $count; $i++) { - print " deleting team ".$inactive_teams[$i]."
\n"; - $res = ttTeamHelper::delete($inactive_teams[$i]); + print " deleting group ".$inactive_groups[$i]."
\n"; + $res = ttTeamHelper::delete($inactive_groups[$i]); } setChange("OPTIMIZE TABLE tt_client_project_binds"); -- 2.20.1