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 /db_search.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 'db_search.php')
-rw-r--r-- | db_search.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db_search.php b/db_search.php index 0a377cc2e1..0b442a5cab 100644 --- a/db_search.php +++ b/db_search.php @@ -38,7 +38,7 @@ $url_params['goto'] = 'db_search.php'; $db_search = new DbSearch($GLOBALS['db']); // Display top links if we are not in an Ajax request -if ($GLOBALS['is_ajax_request'] != true) { +if (! $response->isAjax()) { list( $tables, $num_tables, @@ -58,7 +58,7 @@ if (isset($_REQUEST['submit_search'])) { } // If we are in an Ajax request, we need to exit after displaying all the HTML -if ($GLOBALS['is_ajax_request'] == true && empty($_REQUEST['ajax_page_request'])) { +if ($response->isAjax() && empty($_REQUEST['ajax_page_request'])) { exit; } |