1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 21:30:14 +02:00

Merge branch 'methods2functions' of https://framagit.org/peetah/rss-bridge

This commit is contained in:
logmanoriginal
2016-10-02 16:05:58 +02:00
114 changed files with 899 additions and 904 deletions

View File

@@ -23,7 +23,7 @@ class WordPressBridge extends FeedExpander {
protected function parseItem($newItem){
$item=parent::parseItem($newItem);
$article_html = $this->getSimpleHTMLDOMCached($item['uri']);
$article_html = getSimpleHTMLDOMCached($item['uri']);
$article=null;
switch(true){
@@ -64,7 +64,7 @@ class WordPressBridge extends FeedExpander {
public function collectData(){
if($this->getInput('url') && substr($this->getInput('url'),0,strlen('http'))!=='http'){
// just in case someone find a way to access local files by playing with the url
$this->returnClientError('The url parameter must either refer to http or https protocol.');
returnClientError('The url parameter must either refer to http or https protocol.');
}
$this->collectExpandableDatas($this->getURI().'/feed/atom/');