From b0fc0ccca2225263557d11fe14495749b4a06594 Mon Sep 17 00:00:00 2001 From: spiderr Date: Sun, 6 May 2012 12:42:10 -0400 Subject: replace all PHP4 style constructors with __construct; replace calls to base class constructors with parent::__construct() --- Bablotron.php | 2 +- BitLanguage.php | 2 +- LibertyTranslations.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Bablotron.php b/Bablotron.php index d0ecd5f..5325e78 100644 --- a/Bablotron.php +++ b/Bablotron.php @@ -46,7 +46,7 @@ class Bablotron extends BitBase /** * Spellchecking and finding of alternative words */ - function Bablotron( $lan ) + function __construct( $lan ) { parent::__construct(); $this->lan = $lan; diff --git a/BitLanguage.php b/BitLanguage.php index 124c35d..3644896 100644 --- a/BitLanguage.php +++ b/BitLanguage.php @@ -22,7 +22,7 @@ class BitLanguage extends BitBase { /** * initiate BitLanguage */ - function BitLanguage () { + function __construct() { parent::__construct(); global $gBitSystem; diff --git a/LibertyTranslations.php b/LibertyTranslations.php index ba6cb90..d0e0c1a 100644 --- a/LibertyTranslations.php +++ b/LibertyTranslations.php @@ -10,9 +10,9 @@ * @package languages */ class LibertyTranslations extends LibertyBase { - function LibertyTranslations( $pContentId = NULL ) { + function __construct( $pContentId = NULL ) { $this->mContentId = $pContentId; - LibertyBase::LibertyBase(); + parent::__construct(); } function getContentTranslations() { -- cgit v1.3