Update storage.php

This commit is contained in:
Namhyeon Go 2019-05-26 02:37:39 +09:00 committed by GitHub
parent 50739c3d26
commit 8c54ba8eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -303,6 +303,9 @@ if(!check_function_exists("write_storage_file")) {
if(!check_function_exists("append_storage_file")) {
function append_storage_file($data, $options=array()) {
$options['mode'] = "a";
if(array_key_equals("newline", $options, true)) {
$data .= DOC_EOL;
}
return write_storage_file($data, $options);
}
}