cvs: pear /DB_DataObject DataObject.php /DB_DataObject/DataObject Generator.php

From: Date: Tue, 27 Aug 2002 00:34:44 +0000
Subject: cvs: pear /DB_DataObject DataObject.php /DB_DataObject/DataObject Generator.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5995@lists.php.net to get a copy of this message
alan_k Mon Aug 26 20:34:44 2002 EDT Modified files: /pear/DB_DataObject DataObject.php /pear/DB_DataObject/DataObject Generator.php Log: bug fixes by Jens Fischer Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.21 pear/DB_DataObject/DataObject.php:1.22 --- pear/DB_DataObject/DataObject.php:1.21 Fri Aug 16 01:15:53 2002 +++ pear/DB_DataObject/DataObject.php Mon Aug 26 20:34:43 2002 @@ -15,7 +15,7 @@ // | Author: Alan Knowles <alan@akbkhome.com> // +----------------------------------------------------------------------+ // -// $Id: DataObject.php,v 1.21 2002/08/16 05:15:53 alan_k Exp $ +// $Id: DataObject.php,v 1.22 2002/08/27 00:34:43 alan_k Exp $ // // Object Based Database Query Builder and data store // @@ -838,9 +838,10 @@ $location = $options['schema_location']; $definitions[$database] = parse_ini_file($location."/{$database}.ini",TRUE); /* load the link table if it exists. */ - if (file_exists($location."/{$database}.links.ini")) { + if (file_exists("{$location}/{$database}.links.ini")) { $links = &PEAR::getStaticProperty('DB_DataObject', "{$database}.links"); - $linkConfig = parse_ini_file("config/{$database}.links.ini", true); + /* not sure why $links = ... here - TODO check if that works */ + $linkConfig = parse_ini_file("{$location}/{$database}.links.ini", true); $links = $linkConfig; } return $definitions[$database][$table]; @@ -1417,4 +1418,4 @@ -?> \ No newline at end of file +?> Index: pear/DB_DataObject/DataObject/Generator.php diff -u pear/DB_DataObject/DataObject/Generator.php:1.5 pear/DB_DataObject/DataObject/Generator.php:1.6 --- pear/DB_DataObject/DataObject/Generator.php:1.5 Sat Aug 10 01:50:42 2002 +++ pear/DB_DataObject/DataObject/Generator.php Mon Aug 26 20:34:43 2002 @@ -268,7 +268,7 @@ mkdir($base,0755); $class_prefix = $options['class_prefix']; if ($extends = $options['extends']) { - $this->_extends = $entends; + $this->_extends = $extends; $this->_extendsFile = $options['extends_location']; } @@ -394,4 +394,4 @@ } -?> \ No newline at end of file +?>

« previous php.pear.cvs (#5995) next »