[fix] delete dir not work if thumb.jpg is present

This commit is contained in:
Knah Tsaeb 2013-08-13 10:24:19 +02:00
parent 4b6da04484
commit 00a56aaf5f
1 changed files with 1 additions and 0 deletions

View File

@ -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?>");