logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: pear-core /PEAR ChannelFile.php: msg#00136

Subject: cvs: pear-core /PEAR ChannelFile.php
cellog          Fri Apr 22 23:52:18 2005 EDT

  Modified files:              
    /pear-core/PEAR     ChannelFile.php 
  Log:
  allow supportsREST() to simply accept a server name
  and retrieve the right info regardless of whether it is
  the primary server or a mirror
  
http://cvs.php.net/diff.php/pear-core/PEAR/ChannelFile.php?r1=1.57&r2=1.58&ty=u
Index: pear-core/PEAR/ChannelFile.php
diff -u pear-core/PEAR/ChannelFile.php:1.57 pear-core/PEAR/ChannelFile.php:1.58
--- pear-core/PEAR/ChannelFile.php:1.57 Sat Apr  2 18:34:10 2005
+++ pear-core/PEAR/ChannelFile.php      Fri Apr 22 23:52:17 2005
@@ -15,7 +15,7 @@
  * @author     Greg Beaver <cellog@xxxxxxx>
  * @copyright  1997-2005 The PHP Group
  * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
- * @version    CVS: $Id: ChannelFile.php,v 1.57 2005/04/02 23:34:10 cellog Exp 
$
+ * @version    CVS: $Id: ChannelFile.php,v 1.58 2005/04/23 03:52:17 cellog Exp 
$
  * @link       http://pear.php.net/package/PEAR
  * @since      File available since Release 1.4.0a1
  */
@@ -964,6 +964,9 @@
      */
     function supportsREST($mirror = false)
     {
+        if ($mirror == $this->_channelInfo['name']) {
+            $mirror = false;
+        }
         if ($mirror) {
             if ($mir = $this->getMirror($mirror)) {
                 return isset($mir['rest']);

-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>