]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
RSS feeds now work again
authorKevin Jardine <kevinjardine@yahoo.com>
Sat, 6 Oct 2012 07:10:39 +0000 (09:10 +0200)
committerKevin Jardine <kevinjardine@yahoo.com>
Sat, 6 Oct 2012 07:10:39 +0000 (09:10 +0200)
views/rss/event_calendar/show_events.php

index add5b75dbde8171b7c9235e40181e6f59aa3b3f8..40c67ff6a2d6ff9f5c8e40381e3799b24c537a95 100644 (file)
@@ -9,7 +9,16 @@
  * @link http://radagast.biz/
  * 
  */
+
+elgg_load_library('elgg:event_calendar');
 if ($vars['events']) {
-       echo elgg_view_entity_list($vars['events'], $vars['count'], $vars['offset'], $vars['limit'], false, false);
+       $options = array(
+               'count' => $vars['count'],
+               'offset' => 0,
+               'limit' => 15,
+               'list_type_toggle' => FALSE,
+               'pagination' => FALSE,
+       );
+       // echo elgg_view_entity_list($vars['events'], $vars['count'], $vars['offset'], $vars['limit'], false, false);
+       echo elgg_view_entity_list(event_calendar_flatten_event_structure($vars['events']), $options);
 }
-?>
\ No newline at end of file