[fix] delete dir not work if thumb.jpg is present
This commit is contained in:
parent
4b6da04484
commit
00a56aaf5f
|
@ -341,6 +341,7 @@ function removeDir($dir, $fullListDir) {
|
|||
} else {
|
||||
$parent = substr($dir, 0, -8);
|
||||
$currentDir = getCurrentDir($dir);
|
||||
unlink($GLOBALS['config']['VIDEODIR'].'/'.$path.'/thumb.jpg');
|
||||
rmdir($GLOBALS['config']['VIDEODIR'].'/'.$path);
|
||||
unset($fullListDir[$currentDir]);
|
||||
file_put_contents($GLOBALS['config']['LISTDIR'], "<?php\n\$fullListDir=".var_export($fullListDir, true).";\n?>");
|
||||
|
|
Loading…
Reference in New Issue