diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2013-12-03 10:57:07 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2013-12-03 10:57:18 -0800 |
commit | a38172dc202deaa622ed8ccc255ce7cdf0bcb39a (patch) | |
tree | 057a8b32b44fe09d48c3fd4b774a5fb3ae63190a /core/includes/ajax.inc | |
parent | 936662b6ca173004d4bc9903e5c8015068a550a2 (diff) | |
download | drupal-a38172dc202deaa622ed8ccc255ce7cdf0bcb39a.tar.gz drupal-a38172dc202deaa622ed8ccc255ce7cdf0bcb39a.zip |
Issue #1998638 by damiankloip, dawehner, kim.pepper, cosmicdreams, larowlan, Damien Tournoud: Replace all remaining superglobals (, , etc.) with Symfony Request object.
Diffstat (limited to 'core/includes/ajax.inc')
-rw-r--r-- | core/includes/ajax.inc | 2 |
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 { |