diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-06-27 03:12:42 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-06-27 03:12:42 -0700 |
commit | e82534d0bceb80f7a9e7ba8f00748ee1eb32b214 (patch) | |
tree | ae8e98a12caa77f78dbfdbc9c492ee808c411c1c /mod/groups/lib/discussion.php | |
parent | 33f5c59d5318bc1e9a607215a31e48c6f7ab5b29 (diff) | |
parent | fe1e3b3923659a4bea73e1596e0ba946f473635c (diff) | |
download | elgg-e82534d0bceb80f7a9e7ba8f00748ee1eb32b214.tar.gz elgg-e82534d0bceb80f7a9e7ba8f00748ee1eb32b214.tar.bz2 |
Merge pull request #52 from cash/banishing-auto-button
Fixes #3616 Banishing auto 'add' button
Diffstat (limited to 'mod/groups/lib/discussion.php')
-rw-r--r-- | mod/groups/lib/discussion.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mod/groups/lib/discussion.php b/mod/groups/lib/discussion.php index 342115c81..52df7e18d 100644 --- a/mod/groups/lib/discussion.php +++ b/mod/groups/lib/discussion.php @@ -23,7 +23,6 @@ function discussion_handle_all_page() { 'content' => $content, 'title' => elgg_echo('discussion:latest'), 'filter' => '', - 'buttons' => '', ); $body = elgg_view_layout('content', $params); @@ -46,6 +45,8 @@ function discussion_handle_list_page($guid) { } elgg_push_breadcrumb($group->name); + elgg_register_add_button(); + group_gatekeeper(); $title = elgg_echo('item:object:groupforumtopic'); @@ -67,10 +68,6 @@ function discussion_handle_list_page($guid) { 'filter' => '', ); - if (!$group->canWriteToContainer()) { - $params['buttons'] = ''; - } - $body = elgg_view_layout('content', $params); echo elgg_view_page($title, $body); @@ -131,7 +128,6 @@ function discussion_handle_edit_page($type, $guid) { 'content' => $content, 'title' => $title, 'filter' => '', - 'buttons' => '', ); $body = elgg_view_layout('content', $params); @@ -190,7 +186,6 @@ function discussion_handle_view_page($guid) { 'content' => $content, 'title' => $topic->title, 'filter' => '', - 'buttons' => '', ); $body = elgg_view_layout('content', $params); |