cvs: pear-core /PEAR Config.php
| From: | Greg Beaver | Date: | Mon, 21 Feb 2005 01:15:37 +0000 |
| Subject: | cvs: pear-core /PEAR Config.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-29587@lists.php.net to get a copy of this message | ||
cellog Sun Feb 20 20:15:37 2005 EDT
Modified files:
/pear-core/PEAR Config.php
Log:
only die if no layer was specified, otherwise return false
http://cvs.php.net/diff.php/pear-core/PEAR/Config.php?r1=1.95&r2=1.96&ty=u
Index: pear-core/PEAR/Config.php
diff -u pear-core/PEAR/Config.php:1.95 pear-core/PEAR/Config.php:1.96
--- pear-core/PEAR/Config.php:1.95 Sun Feb 20 16:00:33 2005
+++ pear-core/PEAR/Config.php Sun Feb 20 20:15:37 2005
@@ -17,7 +17,7 @@
// | Greg Beaver <cellog@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Config.php,v 1.95 2005/02/20 21:00:33 cellog Exp $
+// $Id: Config.php,v 1.96 2005/02/21 01:15:37 cellog Exp $
require_once 'PEAR.php';
require_once 'PEAR/Registry.php';
@@ -1760,7 +1760,11 @@
return $this->_registry['system'];
} elseif ($use === null && isset($this->_registry['default'])) {
return $this->_registry['default'];
+ } elseif ($use) {
+ $a = false;
+ return $a;
} else {
+ // only go here if null was passed in
die("CRITICAL ERROR: Registry could not be initialized from any value");
}
}