X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=import.php;h=938fdb3dd2746b0e30695f1ea8b853e0848b9b10;hb=48ba99d8257be57e5e43a03e80ab5d8c782b5295;hp=235924ac4803137a9a21c1360dbb4206017e882a;hpb=f54ca9d66b525ec1cd7076744c8a022e8b4b488d;p=timetracker.git diff --git a/import.php b/import.php index 235924ac..938fdb3d 100644 --- a/import.php +++ b/import.php @@ -27,7 +27,6 @@ // +----------------------------------------------------------------------+ require_once('initialize.php'); -import('ttImportHelper'); import('ttOrgImportHelper'); import('form.Form'); @@ -43,12 +42,8 @@ $form->addInput(array('type'=>'upload','name'=>'xmlfile','value'=>'browse','maxs $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->get('button.import'))); if ($request->isPost()) { - if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) { - $import = new ttOrgImportHelper($err); - } else { - $import = new ttImportHelper($err); - } - $import->importXml(); + $importHelper = new ttOrgImportHelper($err); + $importHelper->importXml(); if ($err->no()) $msg->add($i18n->get('form.import.success')); } // isPost