cvs: pear /Tree OptionsDB.php
| From: | Wolfram Kriesing | Date: | Sun, 02 Jun 2002 18:02:20 +0000 |
| Subject: | cvs: pear /Tree OptionsDB.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4377@lists.php.net to get a copy of this message | ||
cain Sun Jun 2 14:02:20 2002 EDT
Modified files:
/pear/Tree OptionsDB.php
Log:
- do only require the DB.php if a connect is really done
this makes it possible to use the XML-tree feature without depending on the DB.php
Index: pear/Tree/OptionsDB.php
diff -u pear/Tree/OptionsDB.php:1.2 pear/Tree/OptionsDB.php:1.3
--- pear/Tree/OptionsDB.php:1.2 Mon Feb 4 14:19:50 2002
+++ pear/Tree/OptionsDB.php Sun Jun 2 14:02:20 2002
@@ -19,10 +19,9 @@
// | Authors: Wolfram Kriesing <wolfram@kriesing.de> |
// +----------------------------------------------------------------------+
//
-// $Id: OptionsDB.php,v 1.2 2002/02/04 19:19:50 cain Exp $
+// $Id: OptionsDB.php,v 1.3 2002/06/02 18:02:20 cain Exp $
require_once('Tree/Options.php');
-require_once('DB.php');
/**
* this class additionally retreives a DB connection and saves it
@@ -74,6 +73,9 @@
*/
function _connectDB( $dsn )
{
+ // only include the db if one really wants to connect
+ require_once('DB.php');
+
if (is_string($dsn) || is_array($dsn) )
{
// put the dsn parameters in an array