[AcrimedBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
e5a375ab48
commit
d8ebcc9376
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ class AcrimedBridge extends RssExpander{
|
||||||
|
|
||||||
public function collectData(){
|
public function collectData(){
|
||||||
|
|
||||||
$this->collectExpandableDatas("http://www.acrimed.org/spip.php?page=backend");
|
$this->collectExpandableDatas(static::URI.'spip.php?page=backend');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ class AcrimedBridge extends RssExpander{
|
||||||
|
|
||||||
$articlePage = $this->getSimpleHTMLDOM($newsItem->link);
|
$articlePage = $this->getSimpleHTMLDOM($newsItem->link);
|
||||||
$article = $hs->sanitize($articlePage->find('article.article1', 0)->innertext);
|
$article = $hs->sanitize($articlePage->find('article.article1', 0)->innertext);
|
||||||
$article = HTMLSanitizer::defaultImageSrcTo($article, "http://www.acrimed.org/");
|
$article = HTMLSanitizer::defaultImageSrcTo($article, static::URI);
|
||||||
|
|
||||||
$item['content'] = $article;
|
$item['content'] = $article;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue