Show
Ignore:
Timestamp:
12/12/06 20:06:30 (14 years ago)
Author:
liq
Message:

dev version: small fix to feed_fetcher.php to prevent
1.2.1 version: exi reverted my changes because of 'tag not allowed to change stuff' but with that made the old v1.0 code available again with is partly INCOMPATIBLE with the current mod_v1.2 release (and buggy). updated back to mod ver 1.2 to prevent incompatible code to be spreaded.

cheers
//liq

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/feed_syndication/feed_fetcher.php

    r148 r150  
    6262                xml_set_character_data_handler ( $xml_parser, 'characterData' ); 
    6363                $fp = @fopen($url,"r"); 
    64                 while ($data = fread($fp, 4096)) { 
     64                while ($data = @fread($fp, 4096)) { 
    6565                        if (!xml_parse( $xml_parser, $data, feof($fp) ) && !feof($fp) ) 
    6666                                return "<i>Error getting XML data from ".$url."</i><br><br>"; 
    6767                } 
    68                 fclose($fp); 
     68                @fclose($fp); 
    6969                xml_parser_free($xml_parser); 
    7070                if ($x)