Clarify var by calling it ftpRoot

This commit is contained in:
Matt Pass
2015-08-13 09:23:11 +01:00
parent 01dc2f7943
commit 2ef1637d0b
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ if ($_GET['action']=="load") {
exit;
}
// Get our file contents and close the FTP connection
$loadedFile = toUTF8noBOM(ftpGetContents($ftpConn, $root.$fileLoc."/".$fileName, $ftpMode));
$loadedFile = toUTF8noBOM(ftpGetContents($ftpConn, $ftpRoot.$fileLoc."/".$fileName, $ftpMode));
ftp_close($ftpConn);
// Get local file
} else {

View File

@@ -135,7 +135,7 @@ if (isset($ftpSite)) {
exit;
}
// Get our simple and detailed lists and close the FTP connection
$ftpList = ftpGetList($ftpConn, $root.$location);
$ftpList = ftpGetList($ftpConn, $ftpRoot.$location);
$finalArray = $ftpList['simpleList'];
$ftpItems = $ftpList['detailedList'];
ftp_close($ftpConn);