1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

tools/inc/lib/jsgettext/: misc fixes

This commit is contained in:
czaks 2013-07-03 00:50:43 -04:00 committed by Michael Foster
parent 73fb2cfe55
commit 291a0f02cb
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ class JSParser {
}
public function parse() {
$output = htmlspecialchars($this->content, ENT_NOQUOTES);
$output = $this->content; //htmlspecialchars($this->content, ENT_NOQUOTES);
// extract reg exps
$output = preg_replace_callback(

View File

@ -66,7 +66,7 @@ class PoeditParser {
}
public function toJSON($outputFilename, $varName = 'l10n') {
$str = "$varName = " . $this->getJSON();
$str = "$varName = " . $this->getJSON() . ";";
return file_put_contents($outputFilename, $str) !== false;
}