Skip to content

Commit

Permalink
JClientFtp
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Jun 29, 2018
1 parent be57a1b commit 3214e2e
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -18,6 +18,7 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\User\UserHelper;
use Joomla\CMS\Client\ClientHelper;
use Joomla\CMS\Client\FtpClient;

jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');
Expand Down Expand Up @@ -479,7 +480,7 @@ public function createRestorationFile($basename = null)
if (!$writable)
{
$FTPOptions = ClientHelper::getCredentials('ftp');
$ftp = \JClientFtp::getInstance($FTPOptions['host'], $FTPOptions['port'], array(), $FTPOptions['user'], $FTPOptions['pass']);
$ftp = FtpClient::getInstance($FTPOptions['host'], $FTPOptions['port'], array(), $FTPOptions['user'], $FTPOptions['pass']);
$dest = \JPath::clean(str_replace(JPATH_ROOT, $FTPOptions['root'], $tempdir . '/admintools'), '/');

if (!@mkdir($tempdir . '/admintools'))
Expand Down Expand Up @@ -514,7 +515,7 @@ public function createRestorationFile($basename = null)
if (!is_writable($tempdir))
{
$FTPOptions = ClientHelper::getCredentials('ftp');
$ftp = \JClientFtp::getInstance($FTPOptions['host'], $FTPOptions['port'], array(), $FTPOptions['user'], $FTPOptions['pass']);
$ftp = FtpClient::getInstance($FTPOptions['host'], $FTPOptions['port'], array(), $FTPOptions['user'], $FTPOptions['pass']);
$dest = \JPath::clean(str_replace(JPATH_ROOT, $FTPOptions['root'], $tempdir . '/admintools'), '/');

if (!@mkdir($tempdir . '/admintools'))
Expand Down

0 comments on commit 3214e2e

Please sign in to comment.