Permalink
Browse files

Add some comments

  • Loading branch information...
martin
martin committed Sep 25, 2002
1 parent 04ad372 commit d66ee54d8dbdb84f3fd60e5a26388c3633d5b39a
Showing with 3 additions and 1 deletion.
  1. +3 −1 admin/lang.php
View
@@ -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");
}

0 comments on commit d66ee54

Please sign in to comment.