diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-21 06:44:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-21 06:44:14 +0000 |
commit | ee8aa910b9db2f90bfb46ba852eaa349343d5e04 (patch) | |
tree | 00b849b68e65ae170278f74c422434f4a0bae55d /modules/node/node.pages.inc | |
parent | 0741d8e32320f4578853ae92b242c2f7cd2d339a (diff) | |
download | brdo-ee8aa910b9db2f90bfb46ba852eaa349343d5e04.tar.gz brdo-ee8aa910b9db2f90bfb46ba852eaa349343d5e04.tar.bz2 |
Patch #579366 by sun, litwol | chx, Dries: simplified form API redirection handling. I can actually understand it now. ;-).
Diffstat (limited to 'modules/node/node.pages.inc')
-rw-r--r-- | modules/node/node.pages.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |