[pLog-svn] r1105 - plog/trunk/class/dao
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Wed Feb 16 08:40:29 GMT 2005
Author: oscar
Date: 2005-02-16 08:40:29 +0000 (Wed, 16 Feb 2005)
New Revision: 1105
Modified:
plog/trunk/class/dao/model.class.php
Log:
fixed one potentially problematic issue with the database prefix.
Modified: plog/trunk/class/dao/model.class.php
===================================================================
--- plog/trunk/class/dao/model.class.php 2005-02-16 06:09:14 UTC (rev 1104)
+++ plog/trunk/class/dao/model.class.php 2005-02-16 08:40:29 UTC (rev 1105)
@@ -7,7 +7,6 @@
include_once( PLOG_CLASS_PATH."class/object/object.class.php" );
include_once( PLOG_CLASS_PATH."class/config/config.class.php" );
- include_once( PLOG_CLASS_PATH."class/database/adodb/adodb.inc.php" );
include_once( PLOG_CLASS_PATH."class/database/db.class.php" );
/**
@@ -40,8 +39,7 @@
class Model extends Object
{
- var $_db;
- var $_config;
+ var $_db;
var $_prefix;
/**
@@ -50,13 +48,11 @@
function Model()
{
$this->Object();
- //$this->_fileConfig = new ConfigFileStorage();
$this->_db =& Db::getDb();
- // fetch the database prefix
- $this->_config =& Config::getConfig();
- $this->_prefix = $this->_config->getValue( "db_prefix", DEFAULT_DB_PREFIX );
+ // fetch the database prefix
+ $this->_prefix = Db::getPrefix();
$this->_db->debug=DAO_DEBUG_ENABLED;
}
More information about the pLog-svn
mailing list