From 931a41b3c0876dd969a780d5c17c2c435f8749ce Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Fri, 14 Oct 2011 14:04:36 +0200 Subject: [PATCH] don't run SimplePie_File constructor FS#2348 --- inc/FeedParser.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/FeedParser.php b/inc/FeedParser.php index 235bed46e..e5f1fb636 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; } -- GitLab