Update storage.php

This commit is contained in:
Namhyeon Go 2018-05-27 01:47:14 +09:00 committed by GitHub
parent c3e3d6df8e
commit ab38cea509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,8 +17,8 @@ if(!function_exists("get_storage_path")) {
$dir_path = sprintf("./%s/%s", get_storage_dir(), $type);
if(!is_dir($dir_path)) {
if(!mkdir($dir_path, 0777)) {
set_erorr("can not create directory");
if(!@mkdir($dir_path, 0777)) {
set_error("can not create directory");
show_errors();
}
}