From 98ebed9bc0966697fe730f3f2c1585747d19e987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 29 Aug 2016 12:55:15 +0200 Subject: [PATCH] [LichessBridge] code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/LichessBridge.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bridges/LichessBridge.php b/bridges/LichessBridge.php index 12a178de..4e81e9ce 100644 --- a/bridges/LichessBridge.php +++ b/bridges/LichessBridge.php @@ -4,12 +4,13 @@ class LichessBridge extends HttpCachingBridgeAbstract { public $maintainer = 'AmauryCarrade'; public $name = 'Lichess Blog'; - public $uri = 'http://lichess.org/blog'; + public $uri = 'http://fr.lichess.org/blog'; public $description = 'Returns the 5 newest posts from the Lichess blog (full text)'; public function collectData() { - $xml_feed = $this->getSimpleHTMLDOM('http://fr.lichess.org/blog.atom') or $this->returnServerError('Could not retrieve Lichess blog feed.'); + $xml_feed = $this->getSimpleHTMLDOM($this->uri.'.atom') + or $this->returnServerError('Could not retrieve Lichess blog feed.'); $posts_loaded = 0; foreach($xml_feed->find('entry') as $entry)