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-12-07 19:54:34 +0300
committerMichal Čihař <michal@cihar.com>2016-12-07 19:54:34 +0300
commitb56f101039b73866894325b0f6ab13894f0e44b2 (patch)
tree2b0365bed605482fd6aef3454f0c88b1b9e9a41a /db_operations.php
parent77f4e37c37286a607537ae489c15e0afc474a53c (diff)
Remove is_ajax_request global
We already have the same information on Response object, so let's use it from there. Issue #11731 Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'db_operations.php')
-rw-r--r--db_operations.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/db_operations.php b/db_operations.php
index ff60697f20..253c1eaca0 100644
--- a/db_operations.php
+++ b/db_operations.php
@@ -174,8 +174,8 @@ if (strlen($GLOBALS['db'] > 0)
* Database has been successfully renamed/moved. If in an Ajax request,
* generate the output with {@link PMA\libraries\Response} and exit
*/
- if ($GLOBALS['is_ajax_request'] == true) {
- $response = PMA\libraries\Response::getInstance();
+ $response = PMA\libraries\Response::getInstance();
+ if ($response->isAjax()) {
$response->setRequestStatus($message->isSuccess());
$response->addJSON('message', $message);
$response->addJSON('newname', $_REQUEST['newname']);