mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-06 16:46:48 +01:00
Don't selectFiles=[] on update FM, can move to root
This commit is contained in:
@@ -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 . "', '" .
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user