summaryrefslogtreecommitdiff
path: root/kohana/helpers/feed.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-30 18:09:17 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-30 18:09:17 +0000
commit9f04fef3e046d7b4778ddf449589c9b1a3a67857 (patch)
tree5b3d859bd977adb15fa396d9db914f9d1b82073f /kohana/helpers/feed.php
parent066854424a683f14f70f54e3ef1879e77c409369 (diff)
Updated to r807
Diffstat (limited to 'kohana/helpers/feed.php')
-rw-r--r--kohana/helpers/feed.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/kohana/helpers/feed.php b/kohana/helpers/feed.php
index 53b1fd15..c1e0b81f 100644
--- a/kohana/helpers/feed.php
+++ b/kohana/helpers/feed.php
@@ -20,6 +20,10 @@ class feed_Core {
*/
public static function parse($feed, $limit = 0)
{
+ // Check if SimpleXML is installed
+ if( ! function_exists('simplexml_load_file'))
+ throw new Kohana_User_Exception('Feed Error', 'SimpleXML must be installed!');
+
// Make limit an integer
$limit = (int) $limit;