summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2024-11-25 23:26:28 +0100
committeremkael <emkael@tlen.pl>2024-11-25 23:26:28 +0100
commit901de87b4657fb0da08fc02368d684deece5ef13 (patch)
tree1936571bdd38ceba32092ce5ebd4d79cfb097e03
parent33ca597a8581ff6db6c4b36173d5ed724936dac2 (diff)
Exception namespace bugfix
-rw-r--r--providers/Twitter.php2
-rw-r--r--providers/XmlFeed.php2
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');
}
}