diff options
author | Johannes Schauer Marin Rodrigues <josch@debian.org> | 2022-01-21 21:54:19 +0100 |
---|---|---|
committer | Johannes Schauer Marin Rodrigues <josch@debian.org> | 2022-01-21 21:54:19 +0100 |
commit | abd4361bafba7f3751310d0e3066c066f480afb1 (patch) | |
tree | 1e127fe1201f20ad0c533e3190e7a7dce84c5bed /bridges/SupInfoBridge.php | |
parent | daeb2c0913653d197fad2a75010cfc6034c6a9e8 (diff) |
New upstream version 2022-01-20+dfsg1
Diffstat (limited to 'bridges/SupInfoBridge.php')
-rw-r--r-- | bridges/SupInfoBridge.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bridges/SupInfoBridge.php b/bridges/SupInfoBridge.php index f713b00..a2b9fc0 100644 --- a/bridges/SupInfoBridge.php +++ b/bridges/SupInfoBridge.php @@ -20,11 +20,9 @@ class SupInfoBridge extends BridgeAbstract { public function collectData() { if(empty($this->getInput('tag'))) { - $html = getSimpleHTMLDOM(self::URI . '/articles/') - or returnServerError('Unable to fetch articles !'); + $html = getSimpleHTMLDOM(self::URI . '/articles/'); } else { - $html = getSimpleHTMLDOM(self::URI . '/articles/tag/' . $this->getInput('tag')) - or returnServerError('Unable to fetch articles !'); + $html = getSimpleHTMLDOM(self::URI . '/articles/tag/' . $this->getInput('tag')); } $content = $html->find('#latest', 0)->find('ul[class=courseContent]', 0); @@ -37,8 +35,7 @@ class SupInfoBridge extends BridgeAbstract { private function fetchArticle($link) { - $articleHTML = getSimpleHTMLDOM(self::URI . $link) - or returnServerError('Unable to fetch article !'); + $articleHTML = getSimpleHTMLDOM(self::URI . $link); $article = $articleHTML->find('div[id=courseDocZero]', 0); $item = array(); |