From 4434b2c231bc1770ebf2084fff7ad5b099946aae Mon Sep 17 00:00:00 2001 From: lorilee Date: Tue, 13 Jul 2010 18:41:15 -0700 Subject: [PATCH] Added option in config.inc.php to set the default export method to quick, custom, or custom-no-form --- setup/lib/config_info.inc.php | 1 + setup/lib/forms.inc.php | 1 + setup/lib/messages.inc.php | 1 + 3 files changed, 3 insertions(+) diff --git a/setup/lib/config_info.inc.php b/setup/lib/config_info.inc.php index 71a6bc503..32c6de732 100644 --- a/setup/lib/config_info.inc.php +++ b/setup/lib/config_info.inc.php @@ -97,6 +97,7 @@ $cfg_db['Export']['format'] = array('codegen', 'csv', 'excel', 'htmlexcel', 'yaml'); $cfg_db['Export']['compression'] = array('none', 'zip', 'gzip', 'bzip2'); $cfg_db['Export']['charset'] = array_merge(array(''), $GLOBALS['cfg']['AvailableCharsets']); +$cfg_db['Export']['method'] = array('quick', 'custom', 'custom-no-form'); /** * Config options which will be placed in config file even if they are set diff --git a/setup/lib/forms.inc.php b/setup/lib/forms.inc.php index ea0c87edc..e06adda84 100644 --- a/setup/lib/forms.inc.php +++ b/setup/lib/forms.inc.php @@ -172,6 +172,7 @@ $forms['Import_defaults'] = array('Import' => array( 'skip_queries')); $forms['Export_defaults'] = array('Export' => array( 'format', + 'method', 'compression', 'asfile', 'charset', diff --git a/setup/lib/messages.inc.php b/setup/lib/messages.inc.php index 1defa2d82..14077331e 100644 --- a/setup/lib/messages.inc.php +++ b/setup/lib/messages.inc.php @@ -86,6 +86,7 @@ $strSetupExport_file_template_database_name = __('Database name template'); $strSetupExport_file_template_server_name = __('Server name template'); $strSetupExport_file_template_table_name = __('Table name template'); $strSetupExport_format_name = __('Format'); +$strSetupExport_method_name = __('Method'); $strSetupExport_onserver_name = __('Save on server'); $strSetupExport_onserver_overwrite_name = __('Overwrite existing file(s)'); $strSetupExport_remember_file_template_name = __('Remember file name template');