X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=import.php;h=23715e080c0c6a9af59871a8a7a96a15b6241be1;hb=7293692a2d72451f2ab66723b6f75d22d161fded;hp=d10ee00681a09dfbd90eca2df79e93bd8bd18d73;hpb=a7ba11adfecf6cb906749efe5abce688363aef07;p=timetracker.git 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'));