Commit 15b50045 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #39054: Missing url() for poll form action

parent 6fc0a68f
...@@ -317,7 +317,7 @@ function poll_view_voting(&$node, $teaser, $page, $block) { ...@@ -317,7 +317,7 @@ function poll_view_voting(&$node, $teaser, $page, $block) {
} }
$form['nid'] = array('#type' => 'hidden', '#value' => $node->nid); $form['nid'] = array('#type' => 'hidden', '#value' => $node->nid);
$form['vote'] = array('#type' => 'submit', '#value' => t('Vote')); $form['vote'] = array('#type' => 'submit', '#value' => t('Vote'));
$form['#action'] = 'node/'. $node->nid; $form['#action'] = url('node/'. $node->nid);
return drupal_get_form('poll_view_voting', $form); return drupal_get_form('poll_view_voting', $form);
} }
......
...@@ -317,7 +317,7 @@ function poll_view_voting(&$node, $teaser, $page, $block) { ...@@ -317,7 +317,7 @@ function poll_view_voting(&$node, $teaser, $page, $block) {
} }
$form['nid'] = array('#type' => 'hidden', '#value' => $node->nid); $form['nid'] = array('#type' => 'hidden', '#value' => $node->nid);
$form['vote'] = array('#type' => 'submit', '#value' => t('Vote')); $form['vote'] = array('#type' => 'submit', '#value' => t('Vote'));
$form['#action'] = 'node/'. $node->nid; $form['#action'] = url('node/'. $node->nid);
return drupal_get_form('poll_view_voting', $form); return drupal_get_form('poll_view_voting', $form);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment