diff --git a/admin/export.php b/admin/export.php index 9d3fa2ac..0368cf4e 100644 --- a/admin/export.php +++ b/admin/export.php @@ -300,7 +300,8 @@ while ($row = hesk_dbFetchAssoc($res2)) { // Generate export file if (isset($_GET['w'])) { - // We'll need HH:MM:SS format for hesk_date() here + /* + * // We'll need HH:MM:SS format for hesk_date() here $hesk_settings['timeformat'] = 'H:i:s'; // Get staff names @@ -323,7 +324,7 @@ if (isset($_GET['w'])) { if (!file_exists($export_dir.'index.htm')) { @file_put_contents($export_dir.'index.htm', ''); } - + // Cleanup old files hesk_purge_cache('export', 86400); } else { @@ -637,6 +638,10 @@ if (isset($_GET['w'])) { else { hesk_unlink($save_to); } + */ + + require_once(HESK_PATH . 'inc/export_functions.inc.php'); + list($success_msg, $tickets_exported) = hesk_export_to_XML($sql); } /* Print header */