]> wagnertech.de Git - timetracker.git/blobdiff - week.php
Started using quota percent for users if defined.
[timetracker.git] / week.php
index 1dd6e56a58530e784a84010c28da7dcd11d229c8..f18817d7d298e9fcf1b5e922eac43d7932426e0e 100644 (file)
--- a/week.php
+++ b/week.php
@@ -91,7 +91,7 @@ if ($user->isPluginEnabled('cf')) {
 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->getUserQuota($selected_date->mYear, $selected_date->mMonth);
   $month_total = ttTimeHelper::getTimeForMonth($selected_date);
   $minutes_left = $month_quota_minutes - ttTimeHelper::toMinutes($month_total);