From: martin Date: Wed, 25 Sep 2002 13:37:12 +0000 (+0000) Subject: Add some comments X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d66ee54d8dbdb84f3fd60e5a26388c3633d5b39a;p=moodle.git Add some comments --- diff --git a/admin/lang.php b/admin/lang.php index 9b44986559..8eba59d3df 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -248,7 +248,9 @@ function lang_save_file($path, $file, $strings) { foreach ($strings as $key => $value) { list($id, $stringname) = explode("-",$key); - $value = str_replace("\\\\","\\",$value); + $value = str_replace("\\","",$value); // Delete all slashes + $value = str_replace("$"."a", "\\$"."a", $value); // Add slashes for $a + $value = str_replace("\"", "\\\"", $value); // Add slashes for " if ($id == "string"){ fwrite($f,"\$string['$stringname'] = \"$value\";\n"); }