From b4dfb3dc3cb30744fe9aad92db8249df15042c53 Mon Sep 17 00:00:00 2001 From: spiderr Date: Sun, 6 May 2012 12:42:24 -0400 Subject: replace all PHP4 style constructors with __construct; replace calls to base class constructors with parent::__construct() --- LibertyStructure.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LibertyStructure.php') diff --git a/LibertyStructure.php b/LibertyStructure.php index b9c8889..053729f 100644 --- a/LibertyStructure.php +++ b/LibertyStructure.php @@ -19,9 +19,9 @@ require_once( LIBERTY_PKG_PATH.'LibertyBase.php' ); class LibertyStructure extends LibertyBase { var $mStructureId; - function LibertyStructure ( $pStructureId=NULL, $pContentId=NULL ) { + function __construct( $pStructureId=NULL, $pContentId=NULL ) { // we need to init our database connection early - LibertyBase::LibertyBase(); + parent::__construct(); $this->mStructureId = $pStructureId; $this->mContentId = $pContentId; } -- cgit v1.3