diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-10-14 14:04:36 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-10-14 14:04:36 +0200 |
commit | 931a41b3c0876dd969a780d5c17c2c435f8749ce (patch) | |
tree | 94340e8496b0d2bae53ae0252e8b5a8d15a39d74 | |
parent | 475f2b8d83f2500da97ed9df21c9e047b85c2ab2 (diff) | |
download | rpg-931a41b3c0876dd969a780d5c17c2c435f8749ce.tar.gz rpg-931a41b3c0876dd969a780d5c17c2c435f8749ce.tar.bz2 |
don't run SimplePie_File constructor FS#2348
-rw-r--r-- | inc/FeedParser.php | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |