Ensure we have a slash for the root level

Need a slash to specify the root level when updating the file manager
This commit is contained in:
Matt Pass
2013-03-11 17:37:55 +00:00
parent 82190b330b
commit df481aaf07

View File

@@ -216,6 +216,7 @@ if ($_GET['action']=="delete") {
: unlink($fullPath);
$fileName = basename($fullPath);
$fileLoc = dirname(str_replace($docRoot,"",$fullPath));
if ($fileLoc=="" || $fileLoc=="\\") {$fileLoc="/";};
// Reload file manager
echo '<script>top.ICEcoder.selectedFiles=[];top.ICEcoder.updateFileManagerList(\'delete\',\''.$fileLoc.'\',\''.$fileName.'\');';
echo 'action="delete";</script>';