@@ 8794-8797 (lines=4) @@ | ||
8791 | 'Accept' => 'application/atom+xml, application/rss+xml, application/rdf+xml;q=0.9, application/xml;q=0.8, text/xml;q=0.8, text/html;q=0.7, unknown/unknown;q=0.1, application/unknown;q=0.1, */*;q=0.1', |
|
8792 | ); |
|
8793 | $feed = $this->registry->create('File', array($href, $this->timeout, 5, $headers, $this->useragent)); |
|
8794 | if ($feed->success && ($feed->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($feed->status_code === 200 || $feed->status_code > 206 && $feed->status_code < 300)) && $this->is_feed($feed)) |
|
8795 | { |
|
8796 | $feeds[$href] = $feed; |
|
8797 | } |
|
8798 | } |
|
8799 | $done[] = $href; |
|
8800 | } |
|
@@ 8866-8873 (lines=8) @@ | ||
8863 | 'Accept' => 'application/atom+xml, application/rss+xml, application/rdf+xml;q=0.9, application/xml;q=0.8, text/xml;q=0.8, text/html;q=0.7, unknown/unknown;q=0.1, application/unknown;q=0.1, */*;q=0.1', |
|
8864 | ); |
|
8865 | $feed = $this->registry->create('File', array($value, $this->timeout, 5, $headers, $this->useragent)); |
|
8866 | if ($feed->success && ($feed->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($feed->status_code === 200 || $feed->status_code > 206 && $feed->status_code < 300)) && $this->is_feed($feed)) |
|
8867 | { |
|
8868 | return $feed; |
|
8869 | } |
|
8870 | else |
|
8871 | { |
|
8872 | unset($array[$key]); |
|
8873 | } |
|
8874 | } |
|
8875 | } |
|
8876 | return null; |
|
@@ 8893-8900 (lines=8) @@ | ||
8890 | 'Accept' => 'application/atom+xml, application/rss+xml, application/rdf+xml;q=0.9, application/xml;q=0.8, text/xml;q=0.8, text/html;q=0.7, unknown/unknown;q=0.1, application/unknown;q=0.1, */*;q=0.1', |
|
8891 | ); |
|
8892 | $feed = $this->registry->create('File', array($value, $this->timeout, 5, null, $this->useragent)); |
|
8893 | if ($feed->success && ($feed->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($feed->status_code === 200 || $feed->status_code > 206 && $feed->status_code < 300)) && $this->is_feed($feed)) |
|
8894 | { |
|
8895 | return $feed; |
|
8896 | } |
|
8897 | else |
|
8898 | { |
|
8899 | unset($array[$key]); |
|
8900 | } |
|
8901 | } |
|
8902 | } |
|
8903 | return null; |