Switched to new export-import with subgroup support.
[timetracker.git] / export.php
index 3d61781..2b52aca 100644 (file)
@@ -57,11 +57,11 @@ if ($request->isPost()) {
     $mime_type = 'application/x-bzip2';
   }
 
-  if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) {
+  //if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) {
     $exportHelper = new ttOrgExportHelper();
-  } else {
-    $exportHelper = new ttExportHelper();
-  }
+  //} 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);