Started to work on ttRegistrator class to encapsulate restration related tasks.
[timetracker.git] / access_denied.php
index 05983f5..65a5ed7 100644 (file)
@@ -28,8 +28,8 @@
 
 require_once('initialize.php');
 
-$errors->add($i18n->getKey('error.access_denied'));  
-if ($auth->isAuthenticated()) $GLOBALS['SMARTY']->assign('authenticated', true); // Used in header.tpl for menu display.
+$err->add($i18n->getKey('error.access_denied'));
+if ($auth->isAuthenticated()) $smarty->assign('authenticated', true); // Used in header.tpl for menu display.
 
 $smarty->assign('title', $i18n->getKey('label.error'));
 $smarty->assign('content_page_name', 'access_denied.tpl');