Don't selectFiles=[] on update FM, can move to root

This commit is contained in:
mattpass
2020-06-27 15:23:20 +01:00
parent 373f0574f5
commit 35fa4c8570
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ class File
public function updateFileManager($action, $fileLoc, $fileName, $perms, $oldFile, $uploaded, $fileOrFolder) {
global $doNext;
$doNext .= "ICEcoder.selectedFiles=[]; ICEcoder.updateFileManagerList('" .
$doNext .= "ICEcoder.updateFileManagerList('" .
$action . "', '" .
$fileLoc . "', '" .
$fileName . "', '" .

View File

@@ -230,7 +230,7 @@ if (!$error && "move" === $_GET['action']) {
$srcDir = $docRoot . $iceRoot . str_replace("|", "/", $_GET['oldFileName']);
$tgtDir = $docRoot . $fileLoc . "/" . $fileName;
}
if ($srcDir != $tgtDir && $fileLoc != "") {
if ($srcDir != $tgtDir) {
if (!$demoMode && (isset($ftpSite) || is_writable($srcDir))) {
// FTP
if (isset($ftpSite)) {