PHP7 errors fix.

Warning: PHP Deprecated:  Methods with the same name as their class will
not be constructors in a future version of PHP.
This commit is contained in:
MinSoo Kim 2015-12-30 22:43:44 +09:00
parent 2cd07067de
commit c58b5bf4bf
6 changed files with 9 additions and 9 deletions

View file

@ -37,7 +37,7 @@ class CacheRedis extends CacheBase
* @param string $url url of Redis
* @return void
*/
function CacheRedis($url)
function __construct($url)
{
//$config['url'] = 'redis://localhost:6379/1';
$config['url'] = is_array($url) ? reset($url) : $url;

View file

@ -70,7 +70,7 @@ class autoinstall extends ModuleObject
*
* @return void
*/
function autoinstall()
function __construct()
{
$oModuleModel = getModel('module');
$config = $oModuleModel->getModuleConfig('autoinstall');

View file

@ -344,7 +344,7 @@ class SFTPModuleInstaller extends ModuleInstaller
* @param object $package Package information
* @return void
*/
function SFTPModuleInstaller(&$package)
function __construct(&$package)
{
$this->package = &$package;
$this->ftp_info = Context::getFTPInfo();
@ -507,7 +507,7 @@ class PHPFTPModuleInstaller extends ModuleInstaller
* @param object $package Package information
* @var void
*/
function PHPFTPModuleInstaller(&$package)
function __construct(&$package)
{
$this->package = &$package;
$this->ftp_info = Context::getFTPInfo();
@ -720,7 +720,7 @@ class FTPModuleInstaller extends ModuleInstaller
*
* @param object $package Package information
*/
function FTPModuleInstaller(&$package)
function __construct(&$package)
{
$this->package = &$package;
$this->ftp_info = Context::getFTPInfo();
@ -880,7 +880,7 @@ class DirectModuleInstaller extends ModuleInstaller
*
* @param object $package Package information
*/
function DirectModuleInstaller(&$package)
function __construct(&$package)
{
$this->package = &$package;
}

View file

@ -23,7 +23,7 @@ class board extends ModuleObject
*
* @return void
*/
function board()
function __construct()
{
if(!Context::isInstalled()) return;

View file

@ -779,7 +779,7 @@ class contentItem extends Object
var $contents_link = null;
var $domain = null;
function contentItem($browser_title='')
function __construct($browser_title='')
{
$this->browser_title = $browser_title;
}

View file

@ -671,7 +671,7 @@ class mcontentItem extends Object
var $contents_link = null;
var $domain = null;
function mcontentItem($browser_title='')
function __construct($browser_title='')
{
$this->browser_title = $browser_title;
}