diff options
Diffstat (limited to 'modules/locale.module')
-rw-r--r-- | modules/locale.module | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/locale.module b/modules/locale.module index 145f16228..99f374d36 100644 --- a/modules/locale.module +++ b/modules/locale.module @@ -103,7 +103,7 @@ function locale_edit($lid) { $result = db_query("SELECT * FROM locales WHERE lid = '$lid'"); if ($translation = db_fetch_object($result)) { - $form .= form_item(t("Original text"), wordwrap(htmlentities($translation->string))); + $form .= form_item(t("Original text"), wordwrap(htmlspecialchars($translation->string))); foreach ($languages as $code=>$language) { $form .= (strlen($translation->string) > 30) ? form_textarea($language, $code, $translation->$code, 50, 10) : form_textfield($language, $code, $translation->$code, 50, 128); @@ -126,16 +126,15 @@ function locale_languages($translation) { } function locale_seek() { - global $id, $languages, $locale_settings; + global $id, $languages; $op = $_POST["op"]; $edit = $_POST["edit"]; - if ($op != 'overview' && !$edit && session_is_registered("locale_settings")) { - $edit = $locale_settings; + if ($op != 'overview' && !$edit && isset($_SESSION["locale_settings"])) { + $edit = $_SESSION["locale_settings"]; } else { - $locale_settings = $edit; - session_register("locale_settings"); + $_SESSION["locale_settings"] = $edit; } if (is_array($edit)) { |