Replace file_put_contents() with safe alternative

This commit is contained in:
Kijin Sung 2016-06-23 00:07:29 +09:00
parent 30106b7fc4
commit 3c15bf4129
3 changed files with 3 additions and 3 deletions

View file

@ -904,7 +904,7 @@ class moduleAdminController extends module
{
$buff[] = sprintf('$lang[\'%s\'] = \'%s\';', $code, addcslashes($value, "'"));
}
if (!@file_put_contents(sprintf('%s/%d.%s.php', $cache_path, $args->site_srl, $langCode), join(PHP_EOL, $buff), LOCK_EX))
if (!Rhymix\Framework\Storage::write(sprintf('%s/%d.%s.php', $cache_path, $args->site_srl, $langCode), join(PHP_EOL, $buff)))
{
return;
}