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 /index.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 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index baafdd9373..abe673bf17 100644
--- a/index.php
+++ b/index.php
@@ -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;
}