aboutsummaryrefslogtreecommitdiff
path: root/bridges/SkimfeedBridge.php
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/SkimfeedBridge.php')
-rw-r--r--bridges/SkimfeedBridge.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/bridges/SkimfeedBridge.php b/bridges/SkimfeedBridge.php
index a224cdf4..bad1af15 100644
--- a/bridges/SkimfeedBridge.php
+++ b/bridges/SkimfeedBridge.php
@@ -633,8 +633,7 @@ class SkimfeedBridge extends BridgeAbstract
$author = '<a href="' . $anchor->href . '">' . trim($anchor->plaintext) . '</a>';
$uri = $anchor->href;
- $box_html = getSimpleHTMLDOM($uri)
- or returnServerError('Could not load custom feed!');
+ $box_html = getSimpleHTMLDOM($uri);
$this->extractFeed($box_html, $author);
}
@@ -665,8 +664,7 @@ class SkimfeedBridge extends BridgeAbstract
*/
private function exportBoxChannels()
{
- $html = getSimpleHTMLDOMCached(static::URI)
- or returnServerError('No contents received from Skimfeed!');
+ $html = getSimpleHTMLDOMCached(static::URI);
if (!$this->isCompatible($html)) {
returnServerError('Skimfeed version is not compatible!');
@@ -722,8 +720,7 @@ EOD;
*/
private function exportTechChannels()
{
- $html = getSimpleHTMLDOMCached(static::URI)
- or returnServerError('No contents received from Skimfeed!');
+ $html = getSimpleHTMLDOMCached(static::URI);
if (!$this->isCompatible($html)) {
returnServerError('Skimfeed version is not compatible!');
@@ -759,8 +756,7 @@ EOD;
$message .= "\t\t'{$title}' => array(\n";
- $channel_html = getSimpleHTMLDOMCached(static::URI . $uri)
- or returnServerError('Could not load tech channel ' . $channel->plaintext . '!');
+ $channel_html = getSimpleHTMLDOMCached(static::URI . $uri);
$boxes = $channel_html->find('#boxx .boxes')
or returnServerError('Could not find boxes!');