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/modules/system/system.module | |
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/modules/system/system.module')
-rw-r--r-- | core/modules/system/system.module | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 7f9806a4e933..17d7fb0cfb3e 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -2722,7 +2722,8 @@ function system_default_region($theme) { * * If the submit handler for a form that implements confirm_form() is invoked, * the user successfully confirmed the action. You should never directly - * inspect $_POST to see if an action was confirmed. + * inspect $_POST or \Drupal::request()->request to see if an action was + * confirmed. * * Note - if the parameters $question, $description, $yes, or $no could contain * any user input (such as node titles or taxonomy terms), it is the @@ -2817,7 +2818,7 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL, function system_admin_compact_mode() { // PHP converts dots into underscores in cookie names to avoid problems with // its parser, so we use a converted cookie name. - return isset($_COOKIE['Drupal_visitor_admin_compact_mode']) ? $_COOKIE['Drupal_visitor_admin_compact_mode'] : \Drupal::config('system.site')->get('admin_compact_mode'); + return \Drupal::request()->cookies->get('Drupal_visitor_admin_compact_mode', \Drupal::config('system.site')->get('admin_compact_mode')); } /** |