From 901de87b4657fb0da08fc02368d684deece5ef13 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 25 Nov 2024 23:26:28 +0100 Subject: Exception namespace bugfix --- providers/Twitter.php | 2 +- providers/XmlFeed.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/Twitter.php b/providers/Twitter.php index 9a98364..11532b5 100644 --- a/providers/Twitter.php +++ b/providers/Twitter.php @@ -45,7 +45,7 @@ class Twitter extends \Providers\Provider { }, $content->errors )); } - throw new Exception($errorString); + throw new \Exception($errorString); } unset($content->httpstatus); diff --git a/providers/XmlFeed.php b/providers/XmlFeed.php index d5ecd1c..0ac5e6f 100644 --- a/providers/XmlFeed.php +++ b/providers/XmlFeed.php @@ -15,7 +15,7 @@ abstract class XmlFeed extends \Providers\Provider { parent::__construct($feed, $options); $this->_feedUrl = $this->_getFeedUrl($feed); if (!$this->_feedUrl) { - throw new Exception('XML feed "' . $feed . '" undefined'); + throw new \Exception('XML feed "' . $feed . '" undefined'); } } -- cgit v1.2.3