From 71c4c1487dc6cf29087612584f239a15e8b39f2f Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sun, 7 Aug 2005 17:40:33 +0000 Subject: merge recent changes from R1 to HEAD --- LibertyBase.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'LibertyBase.php') diff --git a/LibertyBase.php b/LibertyBase.php index 2fe7440..3111431 100644 --- a/LibertyBase.php +++ b/LibertyBase.php @@ -1,10 +1,10 @@ - * @version $Revision: 1.2 $ - * @package Liberty */ // +----------------------------------------------------------------------+ // | Copyright (c) 2004, bitweaver.org @@ -17,8 +17,6 @@ // +----------------------------------------------------------------------+ // | Authors: spider // +----------------------------------------------------------------------+ -// -// $Id: LibertyBase.php,v 1.2 2005/06/28 07:45:47 spiderr Exp $ /** * required setup @@ -29,16 +27,12 @@ require_once( KERNEL_PKG_PATH.'BitBase.php' ); * Virtual base class (as much as one can have such things in PHP) for all * derived bitweaver classes that manage content. * - * @abstract - * @author spider - * @version $Revision: 1.2 $ - * @package Liberty - * @subpackage LibertyBase + * @package liberty */ class LibertyBase extends BitBase { function LibertyBase () { - // we need to init our mDb early + // we need to init our database connection early BitBase::BitBase(); } @@ -54,7 +48,7 @@ class LibertyBase extends BitBase { if( BitBase::verifyId( $pContentId ) ) { if( empty( $pContentGuid ) ) { - $pContentGuid = $gLibertySystem->GetOne( "SELECT `content_type_guid` FROM `".BIT_DB_PREFIX."tiki_content` WHERE `content_id`=?", array( $pContentId ) ); + $pContentGuid = $gLibertySystem->mDb->GetOne( "SELECT `content_type_guid` FROM `".BIT_DB_PREFIX."tiki_content` WHERE `content_id`=?", array( $pContentId ) ); } if( !empty( $pContentGuid) && isset( $gLibertySystem->mContentTypes[$pContentGuid] ) ) { $type = $gLibertySystem->mContentTypes[$pContentGuid]; -- cgit v1.3