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

@ -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);