Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJouveer <35312684+Jouveer@users.noreply.github.com>2018-01-18 23:46:02 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2018-01-18 23:46:02 +0300
commitdf04267946c691fc77bee8964abe176fa26c94f1 (patch)
treedc3bcbe949bc8fd4b4ab4c5fc15877384b58ec36 /plugins/RssWidget/RssRenderer.php
parentdb47ea850722f731f9e14adbaaaed8cd8d16088d (diff)
Changed Feeds URL to HTTPS (#12449)
* Changed Feeds URL to HTTPS * Fixed issue if an exception is called with https * Update RssChangelog.php * Fixed 2nd Feed URL
Diffstat (limited to 'plugins/RssWidget/RssRenderer.php')
-rw-r--r--plugins/RssWidget/RssRenderer.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/RssWidget/RssRenderer.php b/plugins/RssWidget/RssRenderer.php
index 51c831cd4c..8673443216 100644
--- a/plugins/RssWidget/RssRenderer.php
+++ b/plugins/RssWidget/RssRenderer.php
@@ -46,8 +46,7 @@ class RssRenderer
$content = Http::fetchRemoteFile($this->url);
$rss = simplexml_load_string($content);
} catch (\Exception $e) {
- echo "Error while importing feed: {$e->getMessage()}\n";
- exit;
+ throw new \Exception("Error while importing feed: {$e->getMessage()}\n");
}
$output = '<div style="padding:10px 15px;"><ul class="rss">';