diff --git a/inc/FeedParser.php b/inc/FeedParser.php index 235bed46e694f761720bce19f381b864b172bd30..e5f1fb6369f96d3b0904d5356f336bed67617fad 100644 --- a/inc/FeedParser.php +++ b/inc/FeedParser.php @@ -49,13 +49,15 @@ class FeedParser_File extends SimplePie_File { */ function FeedParser_File($url, $timeout=10, $redirects=5, $headers=null, $useragent=null, $force_fsockopen=false) { - @parent::__construct(); $this->http = new DokuHTTPClient(); $this->success = $this->http->sendRequest($url); $this->headers = $this->http->resp_headers; $this->body = $this->http->resp_body; $this->error = $this->http->error; + + $this->method = SIMPLEPIE_FILE_SOURCE_REMOTE | SIMPLEPIE_FILE_SOURCE_FSOCKOPEN; + return $this->success; }