aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--start.php9
-rw-r--r--views/default/widgets/feed_reader/view.php6
2 files changed, 7 insertions, 8 deletions
diff --git a/start.php b/start.php
index 03c0c00d2..44f259ace 100644
--- a/start.php
+++ b/start.php
@@ -7,14 +7,7 @@
**/
function simplepie_init()
- {
- global $CONFIG;
-
- if (!class_exists('SimplePie'))
- {
- require_once $CONFIG->pluginspath . '/simplepie/simplepie.inc';
- }
-
+ {
add_widget_type('feed_reader', 'Feed Reader Widget', 'single feed');
}
diff --git a/views/default/widgets/feed_reader/view.php b/views/default/widgets/feed_reader/view.php
index 6635ecf88..b640890d2 100644
--- a/views/default/widgets/feed_reader/view.php
+++ b/views/default/widgets/feed_reader/view.php
@@ -1,4 +1,10 @@
<?php
+ global $CONFIG;
+
+ if (!class_exists('SimplePie'))
+ {
+ require_once $CONFIG->pluginspath . '/simplepie/simplepie.inc';
+ }
$feed_url = $vars['entity']->feed_url;
if($feed_url){