Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit e378ed7

Browse files
committed
compile constants with double quotes to allow for emoji bytes
1 parent f266be6 commit e378ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

i18n.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ protected function compile($config, $prefix = '') {
304304
if (is_array($value)) {
305305
$code .= $this->compile($value, $prefix . $key . $this->sectionSeperator);
306306
} else {
307-
$code .= 'const ' . $prefix . $key . ' = \'' . str_replace('\'', '\\\'', $value) . "';\n";
307+
$code .= 'const ' . $prefix . $key . ' = "' . str_replace('"', '\"', $value) . "\";\n";
308308
}
309309
}
310310
return $code;

0 commit comments

Comments
 (0)