1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-29 21:10:31 +02:00

[ticket/15849] Stop using php4 constructors

PHPBB3-15849
This commit is contained in:
Ruben Calvo
2018-10-21 05:56:29 +00:00
parent ae6c3b0d34
commit b148bb5d70
25 changed files with 64 additions and 64 deletions

View File

@@ -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;
}