From ee8aa910b9db2f90bfb46ba852eaa349343d5e04 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 21 Sep 2009 06:44:14 +0000 Subject: Patch #579366 by sun, litwol | chx, Dries: simplified form API redirection handling. I can actually understand it now. ;-). --- modules/node/node.pages.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node') diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc index a0bbf92b0..e794fd0b2 100644 --- a/modules/node/node.pages.inc +++ b/modules/node/node.pages.inc @@ -301,9 +301,9 @@ function node_form($form, &$form_state, $node) { */ function node_form_delete_submit($form, &$form_state) { $destination = ''; - if (isset($_REQUEST['destination'])) { + if (isset($_GET['destination'])) { $destination = drupal_get_destination(); - unset($_REQUEST['destination']); + unset($_GET['destination']); } $node = $form['#node']; $form_state['redirect'] = array('node/' . $node->nid . '/delete', $destination); -- cgit v1.2.3