Skip to content

Commit

Permalink
Merge pull request #1804 from splitbrain/simplepie
Browse files Browse the repository at this point in the history
updated SimplePie and moved to composer based install. #1800
  • Loading branch information
splitbrain committed Feb 3, 2017
2 parents aa1f0d9 + 59b616c commit 47579b9
Show file tree
Hide file tree
Showing 53 changed files with 22,175 additions and 17,793 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -80,4 +80,4 @@ vendor/splitbrain/php-archive/generate-api.sh
vendor/paragonie/random_compat/build-phar.sh
vendor/paragonie/random_compat/dist/*
vendor/paragonie/random_compat/other/*

vendor/simplepie/simplepie/db.sql
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -9,7 +9,8 @@
"splitbrain/php-archive": "~1.0",
"easybook/geshi": "~1.0",
"phpseclib/phpseclib": "~2.0",
"paragonie/random_compat": "^2.0"
"paragonie/random_compat": "^2.0",
"simplepie/simplepie": "^1.4"
},
"suggest": {
"squizlabs/php_codesniffer": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
Expand Down
77 changes: 69 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion inc/FeedParser.php
Expand Up @@ -41,14 +41,17 @@ class FeedParser_File extends SimplePie_File {
var $headers = array();
var $body;
var $error;
/** @noinspection PhpMissingParentConstructorInspection */

/**
* Inititializes the HTTPClient
*
* We ignore all given parameters - they are set in DokuHTTPClient
*
* @inheritdoc
*/
function __construct($url, $timeout=10, $redirects=5,
$headers=null, $useragent=null, $force_fsockopen=false) {
$headers=null, $useragent=null, $force_fsockopen=false, $curl_options = array()) {
$this->http = new DokuHTTPClient();
$this->success = $this->http->sendRequest($url);

Expand All @@ -61,14 +64,17 @@ function __construct($url, $timeout=10, $redirects=5,
return $this->success;
}

/** @inheritdoc */
function headers(){
return $this->headers;
}

/** @inheritdoc */
function body(){
return $this->body;
}

/** @inheritdoc */
function close(){
return true;
}
Expand Down

0 comments on commit 47579b9

Please sign in to comment.