diff options
author | Michal Čihař <michal@cihar.com> | 2017-10-10 15:14:39 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-10-10 15:14:39 +0300 |
commit | 64f4b2cb08ad6a6c1de18685173814be1d008c6e (patch) | |
tree | 97a1fbea8da43340191421f45daf7655ed2a5a01 /export.php | |
parent | 35ccd9fe4cbd1314dcc75c518b264211526a4e86 (diff) |
Avoid using PMA_BYPASS_GET_INSTANCE
We can use Response::disable instead.
Issue #11731
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'export.php')
-rw-r--r-- | export.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/export.php b/export.php index d546e8a45a..f4fc048cb2 100644 --- a/export.php +++ b/export.php @@ -20,14 +20,15 @@ use PhpMyAdmin\Response; /** * Get the variables sent or posted to this script and a core script */ +include_once 'libraries/common.inc.php'; /** * If we are sending the export file (as opposed to just displaying it * as text), we have to bypass the usual PhpMyAdmin\Response mechanism */ if (isset($_POST['output_format']) && $_POST['output_format'] == 'sendit') { - define('PMA_BYPASS_GET_INSTANCE', 1); + $response = Response::getInstance(); + $response->disable(); } -include_once 'libraries/common.inc.php'; $response = Response::getInstance(); $header = $response->getHeader(); |