mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
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:
parent
2cd07067de
commit
c58b5bf4bf
6 changed files with 9 additions and 9 deletions
2
classes/cache/CacheRedis.class.php
vendored
2
classes/cache/CacheRedis.class.php
vendored
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class autoinstall extends ModuleObject
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
function autoinstall()
|
||||
function __construct()
|
||||
{
|
||||
$oModuleModel = getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('autoinstall');
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class board extends ModuleObject
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
function board()
|
||||
function __construct()
|
||||
{
|
||||
if(!Context::isInstalled()) return;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue