XEVE-17-029

xpressengine/xe-core#2163
This commit is contained in:
Kijin Sung 2017-10-19 13:57:30 +09:00
parent b1a4d322c7
commit 7b34a19574
2 changed files with 4 additions and 8 deletions

View file

@ -908,9 +908,9 @@ class moduleAdminController extends module
$buff = array("<?php if(!defined('__XE__')) exit();");
foreach($langMap[$langCode] as $code => $value)
{
$buff[] = sprintf('$lang[\'%s\'] = \'%s\';', $code, addcslashes($value, "'"));
$buff[] = sprintf('$lang[%s] = %s;', var_export(strval($code), true), var_export(strval($value), true));
}
if (!Rhymix\Framework\Storage::write(sprintf('%s/%d.%s.php', $cache_path, $args->site_srl, $langCode), join(PHP_EOL, $buff)))
if (!Rhymix\Framework\Storage::write(sprintf('%s/%d.%s.php', $cache_path, $args->site_srl, $langCode), implode(PHP_EOL, $buff)))
{
return;
}