mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
bridges: Remove unnecessary functions getName() and getURI()
This commit is contained in:
parent
9f3e7e1da7
commit
63bb7ef24d
104 changed files with 107 additions and 854 deletions
|
@ -6,7 +6,7 @@ class ReporterreBridge extends BridgeAbstract{
|
|||
$this->name = "Reporterre Bridge";
|
||||
$this->uri = "http://www.reporterre.net/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = "2016-08-06";
|
||||
$this->update = "2016-08-09";
|
||||
}
|
||||
|
||||
private function ExtractContentReporterre($url) {
|
||||
|
@ -20,7 +20,7 @@ class ReporterreBridge extends BridgeAbstract{
|
|||
unset ($html2);
|
||||
|
||||
// Replace all relative urls with absolute ones
|
||||
$text = preg_replace('/(href|src)(\=[\"\'])(?!http)([^"\']+)/ims', "$1$2" . $this->getURI() . "$3", $text);
|
||||
$text = preg_replace('/(href|src)(\=[\"\'])(?!http)([^"\']+)/ims', "$1$2" . $this->uri . "$3", $text);
|
||||
|
||||
$text = strip_tags($text, '<p><br><a><img>');
|
||||
return $text;
|
||||
|
@ -42,12 +42,4 @@ class ReporterreBridge extends BridgeAbstract{
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
return 'Reporterre Bridge';
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return 'http://www.reporterre.net/';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue