Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-10-04 13:16:06 +0300
committerGitHub <noreply@github.com>2016-10-04 13:16:06 +0300
commit686db2039d7937e8fb869897f022eef16cd3c6d5 (patch)
tree079209c40b91bbd3d449e9e21675cbceee80b794 /import.php
parentddf580c51b5f7c4b6f295469b327c308863c2509 (diff)
parente2bd783f579e9b71b9c6d192ac207e7043b1d519 (diff)
Merge pull request #12582 from devenbansod/fix_12569
Use Response instead of Message's display method to print error
Diffstat (limited to 'import.php')
-rw-r--r--import.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/import.php b/import.php
index 127d6e6292..fe6f00d36d 100644
--- a/import.php
+++ b/import.php
@@ -199,7 +199,10 @@ if ($_POST == array() && $_GET == array()) {
$_SESSION['Import_message']['message'] = $message->getDisplay();
$_SESSION['Import_message']['go_back_url'] = $GLOBALS['goto'];
- $message->display();
+ $response = PMA\libraries\Response::getInstance();
+ $response->setRequestStatus(false);
+ $response->addJSON('message', $message);
+
exit; // the footer is displayed automatically
}