X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a62e4bdd1bc89ea4f3cf29507399b5b8f229597a..67c8fa59139659b2da15c560dd10d18601ab311f:/export.php diff --git a/export.php b/export.php index 4f1a571a..3d617814 100644 --- a/export.php +++ b/export.php @@ -28,6 +28,7 @@ require_once('initialize.php'); import('ttExportHelper'); +import('ttOrgExportHelper'); import('form.Form'); // Access check. @@ -47,7 +48,7 @@ $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->get( if ($request->isPost()) { - $filename = 'team_data.xml'; + $filename = 'group_data.xml'; $mime_type = 'text/xml'; $compress = false; if ('bzip' == $cl_compression) { @@ -56,7 +57,11 @@ if ($request->isPost()) { $mime_type = 'application/x-bzip2'; } - $exportHelper = new ttExportHelper(); + if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) { + $exportHelper = new ttOrgExportHelper(); + } else { + $exportHelper = new ttExportHelper(); + } if ($exportHelper->createDataFile($compress)) { header('Pragma: public'); // This is needed for IE8 to download files over https. header('Content-Type: '.$mime_type);