Introduced label.ip in localization files.
[timetracker.git] / export.php
index 5893d80..7ccce33 100644 (file)
@@ -31,7 +31,7 @@ import('ttExportHelper');
 import('form.Form');
 
 // Access check.
-if (!ttAccessCheck(right_export_team)) {
+if (!ttAccessAllowed('export_data')) {
   header('Location: access_denied.php');
   exit();
 }
@@ -74,8 +74,8 @@ if ($request->isPost()) {
     }
     exit;
   } else
-    $errors->add($i18n->getKey('error.sys'));
-} // POST
+    $err->add($i18n->getKey('error.sys'));
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.export'));