aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r--mod/groups/views/default/forum/viewposts.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/groups/views/default/forum/viewposts.php b/mod/groups/views/default/forum/viewposts.php
index 02ed06b62..0ff70a38a 100644
--- a/mod/groups/views/default/forum/viewposts.php
+++ b/mod/groups/views/default/forum/viewposts.php
@@ -10,8 +10,12 @@
* @link http://elgg.com/
*/
- elgg_push_breadcrumb('', 'Parent Group Name');
- elgg_push_breadcrumb(elgg_echo('item:object:groupforumtopic'), '');
+ // set up breadcrumbs
+ $group_guid = get_input('group_guid');
+ $group = get_entity($group_guid);
+ elgg_push_breadcrumb(elgg_echo('groups'), $CONFIG->wwwroot."pg/groups/world/");
+ elgg_push_breadcrumb($group->name, $group->getURL());
+ elgg_push_breadcrumb(elgg_echo('item:object:groupforumtopic'), $CONFIG->wwwroot."pg/groups/forum/{$vars['entity']->container_guid}");
elgg_push_breadcrumb($vars['entity']->title);
echo elgg_view('navigation/breadcrumbs');