aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-29 23:13:05 -0400
committercash <cash.costello@gmail.com>2011-10-29 23:13:05 -0400
commit24c479d059b92eea8a58e627351dbc11ddfd50a9 (patch)
tree1dad3411579e1e0b32f11d9795af30eedab3f6ed /start.php
parent96a90a042c374b45f7780936c111dc1a1e7bfc0f (diff)
downloadelgg-24c479d059b92eea8a58e627351dbc11ddfd50a9.tar.gz
elgg-24c479d059b92eea8a58e627351dbc11ddfd50a9.tar.bz2
updated simplepie for Elgg 1.8
Diffstat (limited to 'start.php')
-rw-r--r--start.php26
1 files changed, 17 insertions, 9 deletions
diff --git a/start.php b/start.php
index 12acb74f9..20adc7545 100644
--- a/start.php
+++ b/start.php
@@ -1,15 +1,23 @@
<?php
-
/**
-* Simplepie Plugin
-*
-* Loads the simplepie feed parser library and provides a widget
-**/
+ * Simplepie Plugin
+ *
+ * Loads the simplepie feed parser library and provides a widget
+ */
+
+elgg_register_event_handler('init', 'system', 'simplepie_init');
function simplepie_init() {
- add_widget_type('feed_reader', elgg_echo('simplepie:widget'), elgg_echo('simplepie:description'));
- elgg_extend_view('css', 'feed_reader/css');
-}
+ elgg_register_widget_type(
+ 'feed_reader',
+ elgg_echo('simplepie:widget'),
+ elgg_echo('simplepie:description'),
+ 'all',
+ true
+ );
-register_elgg_event_handler('plugins_boot', 'system', 'simplepie_init');
+ elgg_extend_view('css/elgg', 'simplepie/css');
+ $lib = elgg_get_plugins_path() . 'simplepie/vendors/simplepie.inc';
+ elgg_register_library('simplepie', $lib);
+}