]> wagnertech.de Git - timetracker.git/blobdiff - export.php
Improved efficiency of ttOrgImportHelper a bit.
[timetracker.git] / export.php
index 4f1a571a1640c0e2688333570ce4c85fd179ad4d..2b52acae0f0f24d95b5371a0afb43fe8b8dc4c66 100644 (file)
@@ -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);