From 753c890f1b0081d3ac248fedcfeffcfa450c471d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 10 Oct 2006 14:20:16 +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 5928698a7..c1a095fe9 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ $Source$ * lang/german: Fix typo (translation #1467138). * libraries/import.lib.php: Correctly fail if file is too short (bug #1574340). + * 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'),