Skip to content

Commit

Permalink
Prefix TL_ROOT in saveToFtp(), fixes #169.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj committed Mar 8, 2019
1 parent 8c06fea commit 59600f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/NotificationCenter/Gateway/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ protected function saveToFTP($strFileName, $strContent, $strStorageMode)
$objFile->close();

// Copy the temporary file to the server
$blnResult = @ftp_put($resConnection, $this->objModel->file_path . '/' . $strFileName, $objFile->path, FTP_BINARY);
$blnResult = @ftp_put($resConnection, $this->objModel->file_path . '/' . $strFileName, TL_ROOT . '/' . $objFile->path, FTP_BINARY);

// Delete temporary file and close FTP connection
$objFile->delete();
Expand Down

0 comments on commit 59600f9

Please sign in to comment.