X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/ca3b5fef452a65d3c4f134676c8d960d10f3ab05..0ae87b2b2eeb7710e1d169f63708c6c5dc2e2452:/timesheets.php diff --git a/timesheets.php b/timesheets.php index fb513bee..b2c64e63 100644 --- a/timesheets.php +++ b/timesheets.php @@ -40,15 +40,15 @@ if (!(ttAccessAllowed('view_own_timesheets') || exit(); } -if (!$user->isPluginEnabled('ts_NEVER_ENABLED')) { // Work in progress... +if (!$user->isPluginEnabled('ts')) { header('Location: feature_disabled.php'); exit(); } // End of access checks. -//$invoices = ttGroupHelper::getActiveInvoices(); +$timesheets = $user->getTimesheets(); -//$smarty->assign('invoices', $invoices); +$smarty->assign('timesheets', $timesheets); $smarty->assign('title', $i18n->get('title.timesheets')); -$smarty->assign('content_page_name', 'invoices.tpl'); // TODO: fix this, too. +$smarty->assign('content_page_name', 'timesheets.tpl'); $smarty->display('index.tpl');