diff options
author | Michal Čihař <michal@cihar.com> | 2016-12-07 19:54:34 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-12-07 19:54:34 +0300 |
commit | b56f101039b73866894325b0f6ab13894f0e44b2 (patch) | |
tree | 2b0365bed605482fd6aef3454f0c88b1b9e9a41a /index.php | |
parent | 77f4e37c37286a607537ae489c15e0afc474a53c (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 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -79,11 +79,11 @@ if (! empty($_REQUEST['db'])) { exit; } +$response = PMA\libraries\Response::getInstance(); /** * Check if it is an ajax request to reload the recent tables list. */ -if ($GLOBALS['is_ajax_request'] && ! empty($_REQUEST['recent_table'])) { - $response = PMA\libraries\Response::getInstance(); +if ($response->isAjax() && ! empty($_REQUEST['recent_table'])) { $response->addJSON( 'list', RecentFavoriteTable::getInstance('recent')->getHtmlList() @@ -92,7 +92,7 @@ if ($GLOBALS['is_ajax_request'] && ! empty($_REQUEST['recent_table'])) { } if ($GLOBALS['PMA_Config']->isGitRevision()) { - if (isset($_REQUEST['git_revision']) && $GLOBALS['is_ajax_request'] == true) { + if (isset($_REQUEST['git_revision']) && $response->isAjax()) { PMA_printGitRevision(); exit; } |