Skip to content

Commit ff71ab0

Browse files
committed
Refactoring: renamed a few variables for consistency.
1 parent 4cd7de9 commit ff71ab0

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

WEB-INF/templates/footer.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<br>
1313
<table cellspacing="0" cellpadding="4" width="100%" border="0">
1414
<tr>
15-
<td align="center">&nbsp;Anuko Time Tracker 1.9.27.3510 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
15+
<td align="center">&nbsp;Anuko Time Tracker 1.9.27.3511 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
1616
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
1717
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
1818
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>

WEB-INF/templates/time.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,9 @@ function get_time() {
358358
<tr>
359359
<td align="left">{$i18n.label.month_total}: {$month_total}</td>
360360
{if $over_quota}
361-
<td align="right">{$i18n.form.time.over_quota}: <span style="color: green;">{$month_left}</span></td>
361+
<td align="right">{$i18n.form.time.over_quota}: <span style="color: green;">{$quota_remaining}</span></td>
362362
{else}
363-
<td align="right">{$i18n.form.time.remaining_quota}: <span style="color: red;">{$month_left}</span></td>
363+
<td align="right">{$i18n.form.time.remaining_quota}: <span style="color: red;">{$quota_remaining}</span></td>
364364
{/if}
365365
</tr>
366366
{/if}

time.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@
6666
if ($user->isPluginEnabled('mq')){
6767
require_once('plugins/MonthlyQuota.class.php');
6868
$quota = new MonthlyQuota();
69-
$monthlyQuota = $quota->get($selected_date->mYear, $selected_date->mMonth);
69+
$month_quota = $quota->get($selected_date->mYear, $selected_date->mMonth);
7070
$month_total = ttTimeHelper::getTimeForMonth($user->getActiveUser(), $selected_date);
71-
$minutesLeft = ttTimeHelper::toMinutes($monthlyQuota) - ttTimeHelper::toMinutes($month_total);
71+
$minutes_left = ttTimeHelper::toMinutes($month_quota) - ttTimeHelper::toMinutes($month_total);
7272

7373
$smarty->assign('month_total', $month_total);
74-
$smarty->assign('over_quota', $minutesLeft < 0);
75-
$smarty->assign('month_left', ttTimeHelper::toAbsDuration($minutesLeft));
74+
$smarty->assign('over_quota', $minutes_left < 0);
75+
$smarty->assign('quota_remaining', ttTimeHelper::toAbsDuration($minutes_left));
7676
}
7777

7878
// Initialize variables.

0 commit comments

Comments
 (0)