fix announce for directory change

This commit is contained in:
xiaomlove
2021-01-19 21:50:21 +08:00
parent a5eaad9036
commit b3d99612a1
15 changed files with 29 additions and 26 deletions
+3 -1
View File
@@ -2703,7 +2703,9 @@ function get_langid_from_langcookie()
function make_folder($pre, $folder_name)
{
$path = $pre . $folder_name;
if(!file_exists($path))
$path = ROOT_PATH . ltrim($path, './');
do_log($path);
if(!is_dir($path))
mkdir($path,0777,true);
return $path;
}