From 4c2bcc7a1bf6878ad9fd6664edcf2b6c8925e4b6 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 26 Sep 2002 03:16:40 +0000 Subject: [PATCH] Much better. No slashes needed AT ALL now, not even for $a variables. Also provided a help button at the top. --- admin/lang.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/admin/lang.php b/admin/lang.php index 8eba59d3df..a52f188e03 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -1,6 +1,6 @@ "; + helpbutton("langedit",$strcomparelanguage); + echo ""; + foreach ($stringfiles as $file) { print_heading("$file", "LEFT", 4); @@ -152,6 +157,7 @@ error_reporting(0); if ($f = fopen("$langdir/$file","r+")) { $editable = true; + fclose($f); } else { $editable = false; echo "

".get_string("makeeditable", "", "$langdir/$file")."

"; @@ -173,13 +179,12 @@ echo ""; foreach ($enstring as $key => $envalue) { $envalue = nl2br(htmlentities($envalue)); - $envalue = str_replace("$"."a", "\\$"."a", $envalue); echo ""; echo ""; echo ""; - $value = htmlentities($string[$key]); - $value = str_replace("$"."a", "\\$"."a", $value); + $value = str_replace("\\","",$string[$key]); // Delete all slashes + $value = htmlentities($value); if ($editable) { echo "
cellheading\" NOWRAP VALIGN=TOP>$keycellheading\" VALIGN=TOP>$envalue"; if (isset($string[$key])) { -- 2.39.5