mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Replace file_put_contents() with safe alternative
This commit is contained in:
parent
30106b7fc4
commit
3c15bf4129
3 changed files with 3 additions and 3 deletions
|
|
@ -682,7 +682,7 @@ class Validator
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
@file_put_contents($filepath, $content, LOCK_EX);
|
||||
Rhymix\Framework\Storage::write($filepath, $content);
|
||||
|
||||
return $filepath;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ class pointAdminController extends point
|
|||
$str .= $key.','.$val."\r\n";
|
||||
}
|
||||
|
||||
@file_put_contents('./files/cache/pointRecal.txt', $str, LOCK_EX);
|
||||
Rhymix\Framework\Storage::write(\RX_BASEDIR . 'files/cache/pointRecal.txt', $str);
|
||||
|
||||
$this->add('total', count($member));
|
||||
$this->add('position', 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue