mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Fix ftpSite bool usage
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user