From a338e0dfa007bd19ba1f0fbc2a55bc2556a724a8 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 12 Mar 2019 13:10:24 +0100 Subject: [PATCH] Fix parent constructor calls --- public_html/includes/class/class.LSattr_html_maildir.php | 2 +- public_html/includes/class/class.LSauthMethod_CAS.php | 2 +- public_html/includes/class/class.LSauthMethod_HTTP.php | 4 ++-- public_html/includes/class/class.LSauthMethod_anonymous.php | 2 +- .../class/class.LSformElement_jsonCompositeAttribute.php | 2 +- .../class/class.LSformElement_supannEtuInscription.php | 2 +- .../includes/class/class.LSformElement_supannRoleEntite.php | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public_html/includes/class/class.LSattr_html_maildir.php b/public_html/includes/class/class.LSattr_html_maildir.php index be99416d..3a4387fa 100644 --- a/public_html/includes/class/class.LSattr_html_maildir.php +++ b/public_html/includes/class/class.LSattr_html_maildir.php @@ -35,7 +35,7 @@ class LSattr_html_maildir extends LSattr_html { public function __construct($name, $config, &$attribute) { $attribute -> addObjectEvent('before_delete',$this,'beforeDelete'); $attribute -> addObjectEvent('after_delete',$this,'deleteMaildirByFTP'); - return parent :: LSattr_html($name, $config, $attribute); + return parent :: __construct($name, $config, $attribute); } public function doOnModify($action,$cur,$new) { diff --git a/public_html/includes/class/class.LSauthMethod_CAS.php b/public_html/includes/class/class.LSauthMethod_CAS.php index c1d0de94..82b862bd 100644 --- a/public_html/includes/class/class.LSauthMethod_CAS.php +++ b/public_html/includes/class/class.LSauthMethod_CAS.php @@ -30,7 +30,7 @@ class LSauthMethod_CAS extends LSauthMethod { public function __construct() { LSauth :: disableLoginForm(); - if (!parent :: LSauthMethod()) + if (!parent :: __construct()) return; if (LSsession :: includeFile(PHP_CAS_PATH)) { diff --git a/public_html/includes/class/class.LSauthMethod_HTTP.php b/public_html/includes/class/class.LSauthMethod_HTTP.php index d6e49a10..81ef86ab 100644 --- a/public_html/includes/class/class.LSauthMethod_HTTP.php +++ b/public_html/includes/class/class.LSauthMethod_HTTP.php @@ -29,10 +29,10 @@ LSsession :: loadLSclass('LSauthMethod_basic'); */ class LSauthMethod_HTTP extends LSauthMethod_basic { - public function LSauthMethod_HTTP() { + public function __construct() { LSauth :: disableLoginForm(); LSauth :: disableLogoutBtn(); - return parent :: LSauthMethod_basic(); + return parent :: __construct(); } /** diff --git a/public_html/includes/class/class.LSauthMethod_anonymous.php b/public_html/includes/class/class.LSauthMethod_anonymous.php index 5cff3109..45b31925 100644 --- a/public_html/includes/class/class.LSauthMethod_anonymous.php +++ b/public_html/includes/class/class.LSauthMethod_anonymous.php @@ -31,7 +31,7 @@ class LSauthMethod_anonymous extends LSauthMethod { LSauth :: disableLoginForm(); LSauth :: disableSelfAccess(); - if (!parent :: LSauthMethod()) + if (!parent :: __construct()) return; if ( (!defined('LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT')) || (constant('LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT') === True)) { diff --git a/public_html/includes/class/class.LSformElement_jsonCompositeAttribute.php b/public_html/includes/class/class.LSformElement_jsonCompositeAttribute.php index b302fd33..a3b14b7f 100644 --- a/public_html/includes/class/class.LSformElement_jsonCompositeAttribute.php +++ b/public_html/includes/class/class.LSformElement_jsonCompositeAttribute.php @@ -36,7 +36,7 @@ class LSformElement_jsonCompositeAttribute extends LSformElement { var $fieldTemplate = 'LSformElement_jsonCompositeAttribute_field.tpl'; public function __construct(&$form, $name, $label, $params, &$attr_html){ - parent :: LSformElement($form, $name, $label, $params,$attr_html); + parent :: __construct($form, $name, $label, $params,$attr_html); $this -> components = $this -> getParam('html_options.components', array()); } diff --git a/public_html/includes/class/class.LSformElement_supannEtuInscription.php b/public_html/includes/class/class.LSformElement_supannEtuInscription.php index 29b470d9..76b928c4 100644 --- a/public_html/includes/class/class.LSformElement_supannEtuInscription.php +++ b/public_html/includes/class/class.LSformElement_supannEtuInscription.php @@ -111,7 +111,7 @@ class LSformElement_supannEtuInscription extends LSformElement_supannCompositeAt 'required' => false ) ); - return parent::LSformElement ($form, $name, $label, $params,$attr_html); + return parent :: __construct($form, $name, $label, $params, $attr_html); } } diff --git a/public_html/includes/class/class.LSformElement_supannRoleEntite.php b/public_html/includes/class/class.LSformElement_supannRoleEntite.php index ec3736ee..684eeacf 100644 --- a/public_html/includes/class/class.LSformElement_supannRoleEntite.php +++ b/public_html/includes/class/class.LSformElement_supannRoleEntite.php @@ -54,7 +54,7 @@ class LSformElement_supannRoleEntite extends LSformElement_supannCompositeAttrib 'required' => false ) ); - return parent::LSformElement ($form, $name, $label, $params,$attr_html); + return parent :: __construct($form, $name, $label, $params, $attr_html); } }