cvs: pear /DB_DataObject DataObject.php
| From: | Alan Knowles | Date: | Thu, 01 Jan 2004 02:49:25 +0000 |
| Subject: | cvs: pear /DB_DataObject DataObject.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-15248@lists.php.net to get a copy of this message | ||
alan_k Wed Dec 31 21:49:25 2003 EDT
Modified files:
/pear/DB_DataObject DataObject.php
Log:
fix bug #501 - autoload using full path
Index: pear/DB_DataObject/DataObject.php
diff -u pear/DB_DataObject/DataObject.php:1.172 pear/DB_DataObject/DataObject.php:1.173
--- pear/DB_DataObject/DataObject.php:1.172 Wed Dec 31 21:46:43 2003
+++ pear/DB_DataObject/DataObject.php Wed Dec 31 21:49:25 2003
@@ -20,7 +20,7 @@
* @package DB_DataObject
* @category DB
*
- * $Id: DataObject.php,v 1.172 2004/01/01 02:46:43 alan_k Exp $
+ * $Id: DataObject.php,v 1.173 2004/01/01 02:49:25 alan_k Exp $
*/
/* =====================================================================================
@@ -1949,16 +1949,16 @@
// only include the file if it exists - and barf badly if it has parse errors :)
+ $file =
$_DB_DATAOBJECT['CONFIG']['class_location'].'/'.ucfirst($table).".php";
-
- if
(!file_exists($_DB_DATAOBJECT['CONFIG']['class_location'].'/'.ucfirst($table).".php"))
{
+ if (!file_exists($file)) {
DB_DataObject::raiseError(
"autoload:Could not find class {$class} using class_location value",
DB_DATAOBJECT_ERROR_INVALIDCONFIG);
return false;
}
- include_once
$_DB_DATAOBJECT['CONFIG']['require_prefix'].ucfirst($table).".php";
+ include_once $file;