summaryrefslogtreecommitdiffstatshomepage
path: root/core/includes/ajax.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/includes/ajax.inc')
-rw-r--r--core/includes/ajax.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/includes/ajax.inc b/core/includes/ajax.inc
index 3f2389f57e95..7ef88c2c73cf 100644
--- a/core/includes/ajax.inc
+++ b/core/includes/ajax.inc
@@ -241,7 +241,7 @@ function ajax_render($commands = array()) {
// since the base page ought to have at least one JS file and one CSS file
// loaded. It probably indicates an error, and rather than making the page
// reload all of the files, instead we return no new files.
- if (empty($_POST['ajax_page_state'][$type])) {
+ if (!\Drupal::request()->request->get("ajax_page_state[$type]", NULL, TRUE)) {
$items[$type] = array();
}
else {