From 861d70b5a2ab44b2202022dbcdee3173aa9cc94e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 10 Oct 2006 14:20:58 +0000 Subject: [PATCH] Fix MIME type and extension to state before plugins were introduced (patch #1570742, thanks to ssevennm - ssevennm). --- ChangeLog | 2 ++ libraries/export/excel.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5410de07e..a67822c63 100755 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,8 @@ $Source$ * libraries/db_table_exists.lib.php: Fix displaying of entered query. * libraries/common.lib.php: Check for sent headers, provide backtrace in this case. + * libraries/export/excel.php: Fix MIME type and extension to state before + plugins were introduced (patch #1570742, thanks to ssevennm - ssevennm). 2006-10-09 Michal Čihař * lang/german: Fix typo (translation #1570611). diff --git a/libraries/export/excel.php b/libraries/export/excel.php index 29f759f82..1f6d96f8f 100644 --- a/libraries/export/excel.php +++ b/libraries/export/excel.php @@ -9,8 +9,8 @@ if (isset($plugin_list)) { $plugin_list['excel'] = array( 'text' => 'strStrucExcelCSV', - 'extension' => 'xls', - 'mime_type' => 'application/vnd.ms-excel', + 'extension' => 'csv', + 'mime_type' => 'text/comma-separated-values', 'options' => array( array('type' => 'text', 'name' => 'null', 'text' => 'strReplaceNULLBy'), array('type' => 'bool', 'name' => 'columns', 'text' => 'strPutColNames'),