Commit 21bed11e authored by Steven Wittens's avatar Steven Wittens

- Add missing url()s around form actions (these would break without clean URLs)

parent daca20e0
......@@ -132,7 +132,7 @@ function _locale_admin_import_screen() {
$form['mode'] = array('#type' => 'radios', '#title' => t('Mode'), '#default_value' => 'overwrite', '#options' => array('overwrite' => t('Strings in the uploaded file replace existing ones, new ones are added'), 'keep' => t('Existing strings are kept, only new strings are added')));
$form['submit'] = array('#type' => 'submit', '#value' => t('Import'));
$form['#attributes']['enctype'] = 'multipart/form-data';
$form['#action'] = 'admin/locale/language/import';
$form['#action'] = url('admin/locale/language/import');
return drupal_get_form('_locale_admin_import', $form);
}
......@@ -1127,7 +1127,7 @@ function _locale_string_seek_form() {
$form['search']['language'] = array('#type' => 'radios', '#title' => t('Language'), '#default_value' => ($query->language ? $query->language : 'all'), '#options' => array_merge(array('all' => t('All languages'), 'en' => t('English (provided by Drupal)')), $languages['name']));
$form['search']['searchin'] = array('#type' => 'radios', '#title' => t('Search in'), '#default_value' => ($query->searchin ? $query->searchin : 'all'), '#options' => array('all' => t('All strings in that language'), 'translated' => t('Only translated strings'), 'untranslated' => t('Only untranslated strings')));
$form['search']['submit'] = array('#type' => 'submit', '#value' => t('Search'));
$form['#action'] = 'admin/locale/string/search';
$form['#action'] = url('admin/locale/string/search');
return drupal_get_form('_locale_string_seek', $form);
}
......
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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);
......
......@@ -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);
......
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