cvs: pear-core /PEAR ChannelFile.php
| From: | Greg Beaver | Date: | Thu, 21 Oct 2004 18:46:29 +0000 |
| Subject: | cvs: pear-core /PEAR ChannelFile.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1106@lists.php.net to get a copy of this message | ||
cellog Thu Oct 21 14:46:29 2004 EDT
Modified files:
/pear-core/PEAR ChannelFile.php
Log:
support for the pseudo-channel __private
http://cvs.php.net/diff.php/pear-core/PEAR/ChannelFile.php?r1=1.23&r2=1.24&ty=u
Index: pear-core/PEAR/ChannelFile.php
diff -u pear-core/PEAR/ChannelFile.php:1.23 pear-core/PEAR/ChannelFile.php:1.24
--- pear-core/PEAR/ChannelFile.php:1.23 Thu Oct 21 14:44:50 2004
+++ pear-core/PEAR/ChannelFile.php Thu Oct 21 14:46:29 2004
@@ -16,7 +16,7 @@
// | Authors: Gregory Beaver <cellog@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: ChannelFile.php,v 1.23 2004/10/21 18:44:50 cellog Exp $
+// $Id: ChannelFile.php,v 1.24 2004/10/21 18:46:29 cellog Exp $
require_once 'PEAR/Common.php';
@@ -1413,8 +1413,10 @@
$this->_validateError(PEAR_CHANNELFILE_ERROR_NO_NAME);
return false;
} elseif (!$this->validChannelName($name)) {
- $this->_validateError(PEAR_CHANNELFILE_ERROR_INVALID_NAME, array('tag'
=> 'name', 'name' => $name));
- return false;
+ if ($name != '__private') {
+ $this->_validateError(PEAR_CHANNELFILE_ERROR_INVALID_NAME, array('tag'
=> 'name', 'name' => $name));
+ return false;
+ }
}
$this->_channelInfo['name'] = $name;
return true;