X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=charts.php;h=985a1ae8ebfde0deaf89e0d03f9f6c1a9964fb2d;hb=de518d7584b24c438ac562b3f1eca4e96568c85a;hp=9dec840aed24effabaa760455d674fc505426b17;hpb=0dfc4dda20c54e173938eaf196f8e071ce790830;p=timetracker.git diff --git a/charts.php b/charts.php index 9dec840a..985a1ae8 100644 --- a/charts.php +++ b/charts.php @@ -38,7 +38,7 @@ import('ttUserHelper'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_view_charts)) { +if (!ttAccessCheck(right_view_charts) || !$user->isPluginEnabled('ch')) { header('Location: access_denied.php'); exit(); } @@ -139,10 +139,10 @@ if ($user->canManageTeam()) { // Chart interval options. $intervals = array(); -$intervals[INTERVAL_THIS_DAY] = $i18n->getKey('dropdown.this_day'); -$intervals[INTERVAL_THIS_WEEK] = $i18n->getKey('dropdown.this_week'); -$intervals[INTERVAL_THIS_MONTH] = $i18n->getKey('dropdown.this_month'); -$intervals[INTERVAL_THIS_YEAR] = $i18n->getKey('dropdown.this_year'); +$intervals[INTERVAL_THIS_DAY] = $i18n->getKey('dropdown.selected_day'); +$intervals[INTERVAL_THIS_WEEK] = $i18n->getKey('dropdown.selected_week'); +$intervals[INTERVAL_THIS_MONTH] = $i18n->getKey('dropdown.selected_month'); +$intervals[INTERVAL_THIS_YEAR] = $i18n->getKey('dropdown.selected_year'); $intervals[INTERVAL_ALL_TIME] = $i18n->getKey('dropdown.all_time'); // Chart interval dropdown.