mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-04 07:12:48 -04:00
Fix string escape (#3468)
This commit is contained in:
@@ -5,7 +5,7 @@ include($argv[1]);
|
||||
echo "<?php\n";
|
||||
echo "return [\n";
|
||||
foreach ($lang as $key=>$value) {
|
||||
echo "\t\"$key\" => \"$value\",\n";
|
||||
echo "\t\"$key\" => \"".addcslashes($value, '"')."\",\n";
|
||||
}
|
||||
echo "];";
|
||||
?>
|
||||
|
||||
@@ -15,3 +15,4 @@ for file in $projectdir/application/language/**/*.php; do
|
||||
sed -i "s/\(\s*\)\"${prefix}_/\1\"/g" $output
|
||||
done
|
||||
rm -rf "$projectdir/application"
|
||||
git add $projectdir/application/language
|
||||
|
||||
Reference in New Issue
Block a user