forked from Wavyzz/dolibarr
scrutinizer in core/lib/ftp.lib.php: $localpath never defiened for ftp_get, added it and modify consequently file where the function is called
This commit is contained in:
@@ -193,11 +193,12 @@ function dol_ftp_delete($connect_id, $file, $newsection)
|
|||||||
* Download a FTP file
|
* Download a FTP file
|
||||||
*
|
*
|
||||||
* @param resource $connect_id Connection handler
|
* @param resource $connect_id Connection handler
|
||||||
* @param string $file File
|
* @param string $localfile The local file path
|
||||||
|
* @param string $file The remote file path
|
||||||
* @param string $newsection $newsection
|
* @param string $newsection $newsection
|
||||||
* @return result
|
* @return result
|
||||||
*/
|
*/
|
||||||
function dol_ftp_get($connect_id, $file, $newsection)
|
function dol_ftp_get($connect_id, $localfile, $file, $newsection)
|
||||||
{
|
{
|
||||||
|
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ if ($action == 'download') {
|
|||||||
|
|
||||||
$newsection = $section;
|
$newsection = $section;
|
||||||
|
|
||||||
$result = dol_ftp_get($connect_id, $file, $newsection);
|
$result = dol_ftp_get($connect_id, $localfile, $file, $newsection);
|
||||||
|
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
|||||||
Reference in New Issue
Block a user