cvs: pear-core /PEAR Config.php
| From: | Greg Beaver | Date: | Mon, 23 May 2005 04:06:51 +0000 |
| Subject: | cvs: pear-core /PEAR Config.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-32037@lists.php.net to get a copy of this message | ||
cellog Mon May 23 00:06:51 2005 EDT
Modified files:
/pear-core/PEAR Config.php
Log:
return preferred_mirror if it is a valid mirror
http://cvs.php.net/diff.php/pear-core/PEAR/Config.php?r1=1.109&r2=1.110&ty=u
Index: pear-core/PEAR/Config.php
diff -u pear-core/PEAR/Config.php:1.109 pear-core/PEAR/Config.php:1.110
--- pear-core/PEAR/Config.php:1.109 Thu May 19 10:43:16 2005
+++ pear-core/PEAR/Config.php Mon May 23 00:06:51 2005
@@ -16,7 +16,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Config.php,v 1.109 2005/05/19 14:43:16 cellog Exp $
+ * @version CVS: $Id: Config.php,v 1.110 2005/05/23 04:06:51 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -1221,6 +1221,7 @@
return $channel; // mirror does not exist
}
}
+ return $ret;
}
if ($channel == $this->getDefaultChannel($layer)) {
return $channel; // we must use the channel name as the preferred mirror
@@ -1229,7 +1230,7 @@
return $this->getDefaultChannel($layer);
}
}
- return null;
+ return $ret;
}