From 8679f24b941d25bf44b9bec2455ad0a021bc43d1 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Sat, 15 Jun 2013 00:45:49 +0200 Subject: [PATCH] Issue #1999424 by marcingy, mongolito404, jiff: Use Symfony Request for path module. --- core/modules/path/path.admin.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/modules/path/path.admin.inc b/core/modules/path/path.admin.inc index 930c1dfa5de..1aca778035e 100644 --- a/core/modules/path/path.admin.inc +++ b/core/modules/path/path.admin.inc @@ -204,9 +204,10 @@ function path_admin_form($form, &$form_state, $path = array('source' => '', 'ali */ function path_admin_form_delete_submit($form, &$form_state) { $destination = array(); - if (isset($_GET['destination'])) { + $query = Drupal::request()->query; + if ($query->has('destination')) { $destination = drupal_get_destination(); - unset($_GET['destination']); + $query->remove('destination'); } $form_state['redirect'] = array('admin/config/search/path/delete/' . $form_state['values']['pid'], array('query' => $destination)); }