Skip to content

Commit

Permalink
Change User agent of simplepie call since it is blocked by certain feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRAoW committed Dec 2, 2018
1 parent 7e38dd7 commit 7ff7e28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Feed/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Feed
public function __construct($url)
{
$feed = new SimplePie();
$feed->set_useragent('mautic');
$feed->set_feed_url($url);
$feed->enable_cache(false);
$feed->init();
Expand Down

0 comments on commit 7ff7e28

Please sign in to comment.