X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=week_view.php;h=9f809af3cf7d151bb7a4539cb75e7fccb7379d55;hb=8b38ee999b1ac4bf055c359080a3d82c2e272b1e;hp=e5ec147960ac898ad25b2b5fc71960f2e3281578;hpb=a8a4278a6a87c600835890a10c774dfdc58e930a;p=timetracker.git diff --git a/week_view.php b/week_view.php index e5ec1479..9f809af3 100644 --- a/week_view.php +++ b/week_view.php @@ -28,7 +28,6 @@ require_once('initialize.php'); import('form.Form'); -import('ttTeamHelper'); // Access checks. if (!ttAccessAllowed('manage_advanced_settings')) { @@ -59,9 +58,9 @@ $form->addInput(array('type'=>'checkbox','name'=>'notes','value'=>$cl_notes)); $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save'))); if ($request->isPost()){ - if (!ttTeamHelper::enablePlugin('wvn', $cl_week_note) || - !ttTeamHelper::enablePlugin('wvl', $cl_week_list) || - !ttTeamHelper::enablePlugin('wvns', $cl_notes)) { + if (!$user->enablePlugin('wvn', $cl_week_note) || + !$user->enablePlugin('wvl', $cl_week_list) || + !$user->enablePlugin('wvns', $cl_notes)) { $err->add($i18n->get('error.db')); } }