From 7d0c490079ed0f8959b1cec011eba2b96c91dc97 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 12 Oct 2010 22:53:59 +0000 Subject: [PATCH] Backport 32515 - Add mimetype to export plugins --- timesheet/inc/class.timesheet_export_csv.inc.php | 4 ++++ timesheet/inc/class.timesheet_export_openoffice.inc.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/timesheet/inc/class.timesheet_export_csv.inc.php b/timesheet/inc/class.timesheet_export_csv.inc.php index 2dd167d2ce..edce3d97a4 100644 --- a/timesheet/inc/class.timesheet_export_csv.inc.php +++ b/timesheet/inc/class.timesheet_export_csv.inc.php @@ -71,6 +71,10 @@ class timesheet_export_csv implements importexport_iface_export_plugin { return 'csv'; } + public static function get_mimetype() { + return 'text/csv'; + } + /** * return html for options. * this way the plugin has all opportunities for options tab diff --git a/timesheet/inc/class.timesheet_export_openoffice.inc.php b/timesheet/inc/class.timesheet_export_openoffice.inc.php index 72fcb9e38f..220e380bf6 100644 --- a/timesheet/inc/class.timesheet_export_openoffice.inc.php +++ b/timesheet/inc/class.timesheet_export_openoffice.inc.php @@ -178,6 +178,10 @@ class timesheet_export_openoffice implements importexport_iface_export_plugin { return 'ods'; } + public static function get_mimetype() { + return 'application/vnd.oasis.opendocument.spreadsheet'; + } + /** * return html for options. * this way the plugin has all opertunities for options tab