diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2018-10-27 22:33:44 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2018-10-27 22:33:44 +0200 |
| commit | 7dbfc1e59c6f5a9d1bef0aabf845ce078967b8ae (patch) | |
| tree | 4f46a7efaaffcd36a0655ccc8023211b05c404d2 /phpBB/includes/functions_transfer.php | |
| parent | 042f47fc3f2e33bbb9791b0dc66b7ea6ccaa8d94 (diff) | |
| parent | b148bb5d707d739e92b66205866a764a9aa133b5 (diff) | |
| download | forums-7dbfc1e59c6f5a9d1bef0aabf845ce078967b8ae.tar forums-7dbfc1e59c6f5a9d1bef0aabf845ce078967b8ae.tar.gz forums-7dbfc1e59c6f5a9d1bef0aabf845ce078967b8ae.tar.bz2 forums-7dbfc1e59c6f5a9d1bef0aabf845ce078967b8ae.tar.xz forums-7dbfc1e59c6f5a9d1bef0aabf845ce078967b8ae.zip | |
Merge pull request #5424 from rubencm/ticket/15849
[ticket/15849] Stop using php4 constructors
Diffstat (limited to 'phpBB/includes/functions_transfer.php')
| -rw-r--r-- | phpBB/includes/functions_transfer.php | 8 |
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; } |
