From ebd60c5c9b1363d8feb28e33144fce6d74afbec9 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 17 Aug 2007 09:45:03 +0000 Subject: [PATCH] bugfix --- htdocs/includes/pear/MDB2.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/pear/MDB2.php b/htdocs/includes/pear/MDB2.php index 4ba92cbcc84..ae166e6839d 100644 --- a/htdocs/includes/pear/MDB2.php +++ b/htdocs/includes/pear/MDB2.php @@ -1849,15 +1849,19 @@ class MDB2_Driver_Common extends DOLIPEAR if ($phptype_specific !== false) { $version = true; $class_name = 'MDB2_Driver_'.$module.'_'.$this->phptype; - $file_name = str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php'; + $file_name = PEAR_PATH.str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php'; } + + // Mise en commentaire car provoquait une erreur + /* if ($phptype_specific === false || (!MDB2::classExists($class_name) && !MDB2::fileExists($file_name)) ) { $version = false; $class_name = 'MDB2_'.$module; - $file_name = str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php'; + $file_name = PEAR_PATH.str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php'; } + */ $err = MDB2::loadClass($class_name, $this->getOption('debug')); if (DOLIPEAR::isError($err)) {