cvs: pear /Config/Config Container.php
| From: | Bertrand Mansion | Date: | Tue, 17 Dec 2002 15:37:56 +0000 |
| Subject: | cvs: pear /Config/Config Container.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7910@lists.php.net to get a copy of this message | ||
mansion Tue Dec 17 10:37:56 2002 EDT
Modified files:
/pear/Config/Config Container.php
Log:
Get rid of the :: because it's probably bugged to death though no one seems to know or
care...
Index: pear/Config/Config/Container.php
diff -u pear/Config/Config/Container.php:1.8 pear/Config/Config/Container.php:1.9
--- pear/Config/Config/Container.php:1.8 Tue Dec 10 15:26:26 2002
+++ pear/Config/Config/Container.php Tue Dec 17 10:37:56 2002
@@ -15,7 +15,7 @@
// | Author: Bertrand Mansion <bmansion@mamasam.com> |
// +---------------------------------------------------------------------+
//
-// $Id: Container.php,v 1.8 2002/12/10 20:26:26 mansion Exp $
+// $Id: Container.php,v 1.9 2002/12/17 15:37:56 mansion Exp $
require_once('Config.php');
@@ -505,7 +505,7 @@
* @access public
* @return null
*/
- function toString($configType = '')
+ function toString($configType = '', $options = array())
{
$configType = strtolower($configType);
if (!Config::isConfigTypeRegistered($configType)) {
@@ -514,7 +514,7 @@
$className = $GLOBALS['CONFIG_TYPES'][$configType][1];
$includeFile = $GLOBALS['CONFIG_TYPES'][$configType][0];
include_once($includeFile);
- return eval("return $className::toString('$configType');");
+ return call_user_func(array($className, 'toString'), $configType, $options,
$this);
} // end func toString
/**