mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
6a0c6bb change some code.
This commit is contained in:
parent
6c636eeaa8
commit
d62e3103fd
1 changed files with 3 additions and 3 deletions
|
|
@ -896,12 +896,12 @@ class moduleAdminController extends module
|
|||
$langMap[$langCode] += $langMap[$targetLangCode];
|
||||
}
|
||||
|
||||
$str = "<?php if(!defined('__XE__')) exit(); \r\n";
|
||||
$buff = array("<?php if(!defined('__XE__')) exit();");
|
||||
foreach($langMap[$langCode] as $code => $value)
|
||||
{
|
||||
$str .= sprintf('$lang[\'%s\'] = \'%s\';', $code, addcslashes($value, "'"));
|
||||
$buff[] = sprintf('$lang[\'%s\'] = \'%s\';', $code, addcslashes($value, "'"));
|
||||
}
|
||||
if (!@file_put_contents(sprintf('%s/%d.%s.php', $cache_path, $args->site_srl, $langCode), $str, LOCK_EX))
|
||||
if (!@file_put_contents(sprintf('%s/%d.%s.php', $cache_path, $args->site_srl, $langCode), join(PHP_EOL, $buff), LOCK_EX))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue