cvs: pear-core /PEAR Config.php

From: Date: Sun, 20 Feb 2005 16:45:05 +0000
Subject: cvs: pear-core /PEAR Config.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-29537@lists.php.net to get a copy of this message
cellog Sun Feb 20 11:45:05 2005 EDT Modified files: /pear-core/PEAR Config.php Log: always use pecl.php.net as the default channel instead of pear.php.net for the pecl command http://cvs.php.net/diff.php/pear-core/PEAR/Config.php?r1=1.91&r2=1.92&ty=u Index: pear-core/PEAR/Config.php diff -u pear-core/PEAR/Config.php:1.91 pear-core/PEAR/Config.php:1.92 --- pear-core/PEAR/Config.php:1.91 Sun Feb 20 00:18:54 2005 +++ pear-core/PEAR/Config.php Sun Feb 20 11:45:04 2005 @@ -17,7 +17,7 @@ // | Greg Beaver <cellog@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.91 2005/02/20 05:18:54 cellog Exp $ +// $Id: Config.php,v 1.92 2005/02/20 16:45:04 cellog Exp $ require_once 'PEAR.php'; require_once 'PEAR/Registry.php'; @@ -1066,13 +1066,16 @@ } elseif (isset($this->configuration[$layer]['default_channel'])) { $ret = $this->configuration[$layer]['default_channel']; } + if ($ret == 'pear.php.net' && defined('PEAR_RUNTYPE') && PEAR_RUNTYPE == 'pecl') { + $ret = 'pecl.php.net'; + } if ($ret) { if ($ret != 'pear.php.net') { $this->_lazyChannelSetup(); } return $ret; } - return 'pear.php.net'; + return PEAR_CONFIG_DEFAULT_CHANNEL; } /**

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