mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 16:00:22 +01:00
tools/inc/lib/jsgettext/: misc fixes
This commit is contained in:
parent
7503a1a7b6
commit
76e9c24475
@ -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(
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user