Update storage.php

This commit is contained in:
Namhyeon Go 2019-03-28 14:09:43 +09:00 committed by GitHub
parent 27f03431aa
commit a8b8633126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,6 +295,13 @@ if(!check_function_exists("write_storage_file")) {
}
}
if(!check_function_exists("append_storage_file")) {
function append_storage_file($data, $options=array()) {
$options['mode'] = "a";
return write_storage_file($data, $options);
}
}
if(!check_function_exists("get_real_path")) {
function get_real_path($file) {
return file_exists($file) ? realpath($file) : false;