projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduced tt_files table.
[timetracker.git]
/
week.php
diff --git
a/week.php
b/week.php
index
c1c76f9
..
f18817d
100644
(file)
--- a/
week.php
+++ b/
week.php
@@
-91,9
+91,9
@@
if ($user->isPluginEnabled('cf')) {
if ($user->isPluginEnabled('mq')){
require_once('plugins/MonthlyQuota.class.php');
$quota = new MonthlyQuota();
if ($user->isPluginEnabled('mq')){
require_once('plugins/MonthlyQuota.class.php');
$quota = new MonthlyQuota();
- $month_quota
= $quota->get
($selected_date->mYear, $selected_date->mMonth);
+ $month_quota
_minutes = $quota->getUserQuota
($selected_date->mYear, $selected_date->mMonth);
$month_total = ttTimeHelper::getTimeForMonth($selected_date);
$month_total = ttTimeHelper::getTimeForMonth($selected_date);
- $minutes_left =
round(60*$month_quota)
- ttTimeHelper::toMinutes($month_total);
+ $minutes_left =
$month_quota_minutes
- ttTimeHelper::toMinutes($month_total);
$smarty->assign('month_total', $month_total);
$smarty->assign('over_quota', $minutes_left < 0);
$smarty->assign('month_total', $month_total);
$smarty->assign('over_quota', $minutes_left < 0);