Update storage.php
This commit is contained in:
parent
50739c3d26
commit
8c54ba8eeb
|
@ -303,6 +303,9 @@ if(!check_function_exists("write_storage_file")) {
|
||||||
if(!check_function_exists("append_storage_file")) {
|
if(!check_function_exists("append_storage_file")) {
|
||||||
function append_storage_file($data, $options=array()) {
|
function append_storage_file($data, $options=array()) {
|
||||||
$options['mode'] = "a";
|
$options['mode'] = "a";
|
||||||
|
if(array_key_equals("newline", $options, true)) {
|
||||||
|
$data .= DOC_EOL;
|
||||||
|
}
|
||||||
return write_storage_file($data, $options);
|
return write_storage_file($data, $options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user