diff options
Diffstat (limited to 'mod/groups/forum.php')
-rw-r--r-- | mod/groups/forum.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/groups/forum.php b/mod/groups/forum.php index 249ff17b2..32ffea2da 100644 --- a/mod/groups/forum.php +++ b/mod/groups/forum.php @@ -20,8 +20,16 @@ group_gatekeeper(); //get any forum topics - $topics = list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 20, 0, get_input('group_guid'), false, false, false); - set_context('search'); + $options = array( + 'type' => 'object', + 'subtype' => 'groupforumtopic', + 'annotation_name' => 'group_topic_post', + 'limit' => 20, + 'container_guid' => $group_guid, + 'fullview' => FALSE + ); + + $topics = elgg_list_entities_from_annotations($options); // set up breadcrumbs $group = get_entity($group_guid); |