X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a7ba11adfecf6cb906749efe5abce688363aef07..d9b4512fae9de17f4bc9d77c7532db6ada9bf8c3:/import.php diff --git a/import.php b/import.php index d10ee006..23715e08 100644 --- a/import.php +++ b/import.php @@ -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'));