You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-13 11:43:58 +08:00
修复上传成功但是返回目录创建失败的提示
This commit is contained in:
@@ -47,11 +47,11 @@ function config_path(){
|
||||
$img_path = $config['path'].date('Y').'/'.date('m').'/'.date('d');
|
||||
|
||||
if (!is_dir($img_path)){
|
||||
mkdir($img_path,0755,true);
|
||||
@mkdir($img_path,0755,true);
|
||||
}
|
||||
|
||||
if (!is_writable($img_path)){
|
||||
chmod($img_path,0755);
|
||||
@chmod($img_path,0755);
|
||||
}
|
||||
|
||||
return $img_path.'/';
|
||||
|
||||
Reference in New Issue
Block a user