aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_transfer.php
diff options
context:
space:
mode:
authorRuben Calvo <rubencm@gmail.com>2018-10-21 05:56:29 +0000
committerRuben Calvo <rubencm@gmail.com>2018-10-21 07:02:26 +0000
commitb148bb5d707d739e92b66205866a764a9aa133b5 (patch)
tree97772b7ee6a4edef789eb556f3b04e45a58668ac /phpBB/includes/functions_transfer.php
parentae6c3b0d34c662f107fb7cb8d9e26e5bd252a3b3 (diff)
downloadforums-b148bb5d707d739e92b66205866a764a9aa133b5.tar
forums-b148bb5d707d739e92b66205866a764a9aa133b5.tar.gz
forums-b148bb5d707d739e92b66205866a764a9aa133b5.tar.bz2
forums-b148bb5d707d739e92b66205866a764a9aa133b5.tar.xz
forums-b148bb5d707d739e92b66205866a764a9aa133b5.zip
[ticket/15849] Stop using php4 constructors
PHPBB3-15849
Diffstat (limited to 'phpBB/includes/functions_transfer.php')
-rw-r--r--phpBB/includes/functions_transfer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_transfer.php b/phpBB/includes/functions_transfer.php
index 67ce2211e7..7427b89917 100644
--- a/phpBB/includes/functions_transfer.php
+++ b/phpBB/includes/functions_transfer.php
@@ -38,7 +38,7 @@ class transfer
/**
* Constructor - init some basic values
*/
- function transfer()
+ function __construct()
{
global $phpbb_root_path;
@@ -264,7 +264,7 @@ class ftp extends transfer
/**
* Standard parameters for FTP session
*/
- function ftp($host, $username, $password, $root_path, $port = 21, $timeout = 10)
+ function __construct($host, $username, $password, $root_path, $port = 21, $timeout = 10)
{
$this->host = $host;
$this->port = $port;
@@ -512,7 +512,7 @@ class ftp_fsock extends transfer
/**
* Standard parameters for FTP session
*/
- function ftp_fsock($host, $username, $password, $root_path, $port = 21, $timeout = 10)
+ function __construct($host, $username, $password, $root_path, $port = 21, $timeout = 10)
{
$this->host = $host;
$this->port = $port;
@@ -529,7 +529,7 @@ class ftp_fsock extends transfer
}
// Init some needed values
- $this->transfer();
+ parent::__construct();
return;
}