Update storage.php

This commit is contained in:
Namhyeon Go 2020-06-16 10:11:52 +09:00 committed by GitHub
parent 7ff7010c34
commit bee5ef35a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ if(!is_fn("get_safe_path")) {
if(!is_fn("get_storage_path")) {
function get_storage_path($type="data") {
$dir_path = sprintf("./%s/%s", get_storage_dir(), get_safe_path($type));
$dir_path = sprintf("%s/%s/%s", get_current_working_dir(), get_storage_dir(), get_safe_path($type));
if(!is_dir($dir_path)) {
if(!@mkdir($dir_path, 0777)) {