From 804dfcf6c4b5b6380d607c8ec6b843d56ac82247 Mon Sep 17 00:00:00 2001 From: Kevin Jardine Date: Mon, 26 Sep 2011 12:42:11 +0200 Subject: major changes for Elgg 1.8 --- views/default/event_calendar/groupprofile_calendar.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'views/default/event_calendar/groupprofile_calendar.php') diff --git a/views/default/event_calendar/groupprofile_calendar.php b/views/default/event_calendar/groupprofile_calendar.php index 826fafa67..7ee09104f 100644 --- a/views/default/event_calendar/groupprofile_calendar.php +++ b/views/default/event_calendar/groupprofile_calendar.php @@ -20,24 +20,15 @@ if (event_calendar_activated_for_group($page_owner_entity)) { // Get the upcoming events $start_date = time(); // now $end_date = $start_date + 60*60*24*365*2; // maximum is two years from now - $events = event_calendar_get_events_between($start_date,$end_date,false,$num,0,page_owner()); + $events = event_calendar_get_events_between($start_date,$end_date,false,$num,0,elgg_get_page_owner_guid()); // If there are any events to view, view them if (is_array($events) && sizeof($events) > 0) { - echo '
'; - echo '

'.elgg_echo("event_calendar:groupprofile").'

'; foreach($events as $event) { echo elgg_view("object/event_calendar",array('entity' => $event)); } - echo ''; - echo "
"; - } else if (get_plugin_setting('group_always_display', 'event_calendar') == 'yes') { - echo '
'; - echo '

'.elgg_echo("event_calendar:groupprofile").'

'; - echo '
'.elgg_echo('event_calendar:no_events_found').'
'; - echo "
"; } } -- cgit v1.2.3