From 21bed11e668d0a526d35d0baab4606af64141b00 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 13 Nov 2005 02:32:18 +0000 Subject: - Add missing url()s around form actions (these would break without clean URLs) --- modules/comment.module | 2 +- modules/comment/comment.module | 2 +- modules/watchdog.module | 2 +- modules/watchdog/watchdog.module | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/comment.module b/modules/comment.module index f98b94ee9..a2b376630 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1199,7 +1199,7 @@ function comment_controls($mode = 2, $order = 1, $comments_per_page = 50, $nid = $form['nid'] = array('#type' => 'hidden', '#value' => $nid); - $form['#action'] = 'comment/reply'; + $form['#action'] = url('comment/reply'); return drupal_get_form('comment_controls'. $top_or_bottom, $form, 'comment_controls'); } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index f98b94ee9..a2b376630 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1199,7 +1199,7 @@ function comment_controls($mode = 2, $order = 1, $comments_per_page = 50, $nid = $form['nid'] = array('#type' => 'hidden', '#value' => $nid); - $form['#action'] = 'comment/reply'; + $form['#action'] = url('comment/reply'); return drupal_get_form('comment_controls'. $top_or_bottom, $form, 'comment_controls'); } diff --git a/modules/watchdog.module b/modules/watchdog.module index b22839ba8..e350d8485 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -91,7 +91,7 @@ function watchdog_overview() { '#options' => $names, '#default_value' => $_SESSION['watchdog_overview_filter'] ); - $form['#action'] = 'admin/logs'; + $form['#action'] = url('admin/logs'); $form['submit'] = array('#type' => 'submit', '#value' =>t('Filter')); $output = drupal_get_form('watchdog_form_overview', $form); diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index b22839ba8..e350d8485 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -91,7 +91,7 @@ function watchdog_overview() { '#options' => $names, '#default_value' => $_SESSION['watchdog_overview_filter'] ); - $form['#action'] = 'admin/logs'; + $form['#action'] = url('admin/logs'); $form['submit'] = array('#type' => 'submit', '#value' =>t('Filter')); $output = drupal_get_form('watchdog_form_overview', $form); -- cgit v1.2.3