X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=3543cce023e70ed7f83be6787dfff433e227b13d;hb=2eb619f250a043df1e3c239b717f2ea224c0515b;hp=63290a69523b65adda5f694930a2842b199afe82;hpb=fb177d58cddc49dcc9507bfa75ab78732571eef9;p=timetracker.git diff --git a/time.php b/time.php index 63290a69..3543cce0 100644 --- a/time.php +++ b/time.php @@ -66,13 +66,13 @@ if ($user->isPluginEnabled('cf')) { if ($user->isPluginEnabled('mq')){ require_once('plugins/MonthlyQuota.class.php'); $quota = new MonthlyQuota(); - $monthlyQuota = $quota->get($selected_date->mYear, $selected_date->mMonth); + $month_quota = $quota->get($selected_date->mYear, $selected_date->mMonth); $month_total = ttTimeHelper::getTimeForMonth($user->getActiveUser(), $selected_date); - $minutesLeft = ttTimeHelper::toMinutes($monthlyQuota) - ttTimeHelper::toMinutes($month_total); + $minutes_left = ttTimeHelper::toMinutes($month_quota) - ttTimeHelper::toMinutes($month_total); $smarty->assign('month_total', $month_total); - $smarty->assign('over_quota', $minutesLeft < 0); - $smarty->assign('month_left', ttTimeHelper::toAbsDuration($minutesLeft)); + $smarty->assign('over_quota', $minutes_left < 0); + $smarty->assign('quota_remaining', ttTimeHelper::toAbsDuration($minutes_left)); } // Initialize variables.