Fix ftpSite bool usage

This commit is contained in:
mattpass
2020-06-05 18:24:17 +01:00
parent ecf3204f6a
commit 4cf3af16f6
2 changed files with 3 additions and 3 deletions

View File

@@ -301,7 +301,7 @@ class File
/* Saving under conditions: Confirmation of overwrite or there is no filename conflict, it is a new file, in either case we can save */
if (overwriteOK || noConflictSave) {
newFileName = "' . (isset($ftpSite) ? "" : $docRoot) . '" + newFileName;
newFileName = "' . (true === $ftpSite ? "" : $docRoot) . '" + newFileName;
saveURL = "lib/file-control.php?action=save' . $fileMDTURLPart . $fileVersionURLPart . '&csrf=' . $_GET["csrf"] . '";
var xhr = ICEcoder.xhrObj();
@@ -330,7 +330,7 @@ class File
ICEcoder.serverMessage("<b>' . $t['Saving'] . '</b><br>" + "'.("Save" === $finalAction ? "newFileName" : "'" . $fileName . "'") . '");
}
}
},10);
}, 10);
};
/* UI dialog cancelling and saving contents for save as looparound */

View File

@@ -107,7 +107,7 @@ if (!$error && "save" === $_GET['action']) {
"fileName" => $fileName,
"fileMDTURLPart" => $fileMDTURLPart,
"fileVersionURLPart" => $fileVersionURLPart,
"ftpSite" => $ftpSite
"ftpSite" => true === isset($ftpSite)
];
$doNext .= $fileClass->handleSaveLooparound($fileDetails, $finalAction, $doNext, $t);