diff --git a/bridges/AcrimedBridge.php b/bridges/AcrimedBridge.php index 54c6f873..39ba87b3 100644 --- a/bridges/AcrimedBridge.php +++ b/bridges/AcrimedBridge.php @@ -7,7 +7,7 @@ class AcrimedBridge extends FeedExpander { const DESCRIPTION = "Returns the newest articles."; public function collectData(){ - $this->collectExpandableDatas("http://www.acrimed.org/spip.php?page=backend"); + $this->collectExpandableDatas(static::URI.'spip.php?page=backend'); } protected function parseItem($newsItem){ @@ -16,7 +16,7 @@ class AcrimedBridge extends FeedExpander { $hs = new HTMLSanitizer(); $articlePage = $this->getSimpleHTMLDOM($newsItem->link); $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; return $item;