The rendering of "view output as text" should not be affected by the fix for the memory problems in export

This commit is contained in:
Marc Delisle 2013-09-02 07:56:08 -04:00
parent 2ca79320ee
commit 1bab8bfeea

View File

@ -6,10 +6,17 @@
* @package PhpMyAdmin
*/
/**
* If we are sending the export file (as opposed to just displaying it
* as text), we have to bypass the usual PMA_Response mechanism
*/
if ($_POST['output_format'] == 'sendit') {
define('PMA_BYPASS_GET_INSTANCE', 1);
}
/**
* Get the variables sent or posted to this script and a core script
*/
define('PMA_BYPASS_GET_INSTANCE', 1);
require_once 'libraries/common.inc.php';
require_once 'libraries/zip.lib.php';
require_once 'libraries/plugin_interface.lib.php';