diff --git a/lib/file-control.php b/lib/file-control.php index e67022f..18df5db 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -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 { diff --git a/lib/get-branch.php b/lib/get-branch.php index 32ef197..023ced3 100644 --- a/lib/get-branch.php +++ b/lib/get-branch.php @@ -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);