cvs: pear-core /PEAR Registry.php
| From: | Greg Beaver | Date: | Mon, 21 Feb 2005 17:54:16 +0000 |
| Subject: | cvs: pear-core /PEAR Registry.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-29629@lists.php.net to get a copy of this message | ||
cellog Mon Feb 21 12:54:16 2005 EDT
Modified files:
/pear-core/PEAR Registry.php
Log:
fix non-aliased channels are not initialized properly
http://cvs.php.net/diff.php/pear-core/PEAR/Registry.php?r1=1.124&r2=1.125&ty=u
Index: pear-core/PEAR/Registry.php
diff -u pear-core/PEAR/Registry.php:1.124 pear-core/PEAR/Registry.php:1.125
--- pear-core/PEAR/Registry.php:1.124 Sun Feb 20 22:26:49 2005
+++ pear-core/PEAR/Registry.php Mon Feb 21 12:54:15 2005
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Registry.php,v 1.124 2005/02/21 03:26:49 cellog Exp $
+// $Id: Registry.php,v 1.125 2005/02/21 17:54:15 cellog Exp $
/*
TODO:
@@ -534,8 +534,12 @@
if (!$channel || $this->_getChannelFromAlias($channel) == 'pear.php.net') {
return $this->statedir;
} else {
+ $ch = $this->_getChannelFromAlias($channel);
+ if (!$ch) {
+ $ch = $channel;
+ }
return $this->statedir . DIRECTORY_SEPARATOR . strtolower('.channel.' .
- str_replace('/', '_',
$this->_getChannelFromAlias($channel)));
+ str_replace('/', '_', $ch));
}
}