projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started using quota percent for users if defined.
[timetracker.git]
/
time.php
diff --git
a/time.php
b/time.php
index
013f15c
..
ac6b69b
100644
(file)
--- a/
time.php
+++ b/
time.php
@@
-85,7
+85,7
@@
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_minutes = $quota->get($selected_date->mYear, $selected_date->mMonth);
+ $month_quota_minutes = $quota->get
UserQuota
($selected_date->mYear, $selected_date->mMonth);
$month_total = ttTimeHelper::getTimeForMonth($selected_date);
$minutes_left = $month_quota_minutes - ttTimeHelper::toMinutes($month_total);
$month_total = ttTimeHelper::getTimeForMonth($selected_date);
$minutes_left = $month_quota_minutes - ttTimeHelper::toMinutes($month_total);