Permalink
Browse files

Suppress constructer warnings for php 7.x (#85)

Constructer fixes for kernel and module legacy.
  • Loading branch information...
shirosaki authored and nao-pon committed Dec 28, 2017
1 parent f0dcbba commit acecdbe86aca219a67aa3ef6f8bd54429c4467cc
@@ -58,6 +58,10 @@ class XoopsConfigCategory extends XoopsObject
*
*/
public function XoopsConfigCategory()
{
return self::__construct();
}
public function __construct()
{
$this->XoopsObject();
$this->initVar('confcat_id', XOBJ_DTYPE_INT, null);
View
@@ -35,6 +35,10 @@ class XoopsTplset extends XoopsObject
{
public function XoopsTplset()
{
return self::__construct();
}
public function __construct()
{
static $initVars;
if (isset($initVars)) {
@@ -88,9 +88,9 @@ class Legacy_ModuleInstallAction extends Legacy_Action
*/
public $mInstaller = null;
public function Legacy_ModuleInstallAction($flag)
public function __construct($flag)
{
parent::Legacy_Action($flag);
parent::__construct($flag);
$this->mInstallSuccess =new XCube_Delegate();
$this->mInstallSuccess->register('Legacy_ModuleInstallAction.InstallSuccess');
@@ -92,7 +92,7 @@ class Legacy_ModuleUninstallAction extends Legacy_Action
public function Legacy_ModuleUninstallAction($flag)
{
parent::Legacy_Action($flag);
parent::__construct($flag);
$this->mUninstallSuccess =new XCube_Delegate();
$this->mUninstallSuccess->register('Legacy_ModuleUninstallAction.UninstallSuccess');

0 comments on commit acecdbe

Please sign in to comment.