Use Response instead of Message's display method to print error
Fix #12569 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This commit is contained in:
parent
19c91010c6
commit
e2bd783f57
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user