Index: temp/trunk/data/module/DB.php
===================================================================
--- temp/trunk/data/module/DB.php	(revision 2290)
+++ temp/trunk/data/module/DB.php	(revision 2338)
@@ -30,6 +30,8 @@
 require_once 'PEAR.php';
 
-
-
+if(!defined('DB_PHP_DIR')) {
+	$DB_PHP_DIR = realpath(dirname( __FILE__));
+	define("DB_PHP_DIR", $DB_PHP_DIR);	
+}
 // {{{ constants
 // {{{ error codes
@@ -454,7 +456,7 @@
         if (isset($options['debug']) && $options['debug'] >= 2) {
             // expose php errors with sufficient debug level
-            include_once "DB/{$type}.php";
+            include_once DB_PHP_DIR . "/DB/{$type}.php";
         } else {
-            @include_once "DB/{$type}.php";
+            @include_once DB_PHP_DIR . "/DB/{$type}.php";
         }
 
@@ -532,7 +534,7 @@
         if (isset($options['debug']) && $options['debug'] >= 2) {
             // expose php errors with sufficient debug level
-            include_once "DB/${type}.php";
+            include_once DB_PHP_DIR . "/DB/${type}.php";
         } else {
-            @include_once "DB/${type}.php";
+            @include_once DB_PHP_DIR . "/DB/${type}.php";
         }
 
