Merges an updated upstream from main.
[timetracker.git] / import.php
index d10ee00..23715e0 100644 (file)
@@ -43,11 +43,10 @@ $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->getK
 
 if ($request->isPost()) {
 
-  $import = new ttImportHelper($errors);
+  $import = new ttImportHelper($err);
   $import->importXml();
-  if ($errors->no())
-    $messages->add($i18n->getKey('form.import.success'));
-} // POST
+  if ($err->no()) $msg->add($i18n->getKey('form.import.success'));
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()) );
 $smarty->assign('title', $i18n->getKey('title.import'));