summaryrefslogtreecommitdiff
path: root/modules/locale.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-09-28 16:20:55 +0000
committerDries Buytaert <dries@buytaert.net>2001-09-28 16:20:55 +0000
commit0cce47f15f21f59ec77de41c76cf13eb2b2f4f74 (patch)
tree73dacf3105fb598058714ccad769e3b86b8b558f /modules/locale.module
parent17c921259f61daac6cc0d10ea145d6882ea89514 (diff)
downloadbrdo-0cce47f15f21f59ec77de41c76cf13eb2b2f4f74.tar.gz
brdo-0cce47f15f21f59ec77de41c76cf13eb2b2f4f74.tar.bz2
- fixed small glitch in node_del()
- fixed small glitch in comment_del() - changed the API of the form() function. The first parameter, the "action"-attribute in the <form>-tag has been made optional. By default, it will be set to "$REQUEST_URI". Why? Because in 98% of the cases we would do: global $REQUEST_URI; $form = form($REQUEST_URI, $form_content); while we can do: $form = form($form_content); now. Update your modules (and sorry for the inconvenience)!
Diffstat (limited to 'modules/locale.module')
-rw-r--r--modules/locale.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/locale.module b/modules/locale.module
index 6999b200f..abfea68d4 100644
--- a/modules/locale.module
+++ b/modules/locale.module
@@ -61,7 +61,7 @@ function locale_save($id, $edit) {
}
function locale_edit($id) {
- global $languages, $REQUEST_URI;
+ global $languages;
$result = db_query("SELECT * FROM locales WHERE id = '$id'");
if ($translation = db_fetch_object($result)) {
$form .= form_item(t("Original text"), "<PRE>". wordwrap(check_output($translation->string)) ."</PRE>");
@@ -69,7 +69,7 @@ function locale_edit($id) {
$form .= form_hidden("id", $id);
$form .= form_submit("Save translations");
- return form($REQUEST_URI, $form);
+ return form($form);
}
}
@@ -138,7 +138,7 @@ function locale_untranslated($language) {
}
function locale_seek() {
- global $edit, $languages, $REQUEST_URI, $op, $locale_settings;
+ global $edit, $languages, $op, $locale_settings;
if ($edit[id] && session_is_registered("locale_settings")) {
$edit = $locale_settings;
@@ -184,7 +184,7 @@ function locale_seek() {
$form .= form_textfield("String", "string", $edit[string], 30, 30, "Leave blank to show all strings. This is treated as a regular expression.");
$form .= form_submit("Search");
- $output .= form($REQUEST_URI, $form);
+ $output .= form($form);
return $output;
}