diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-06-26 07:20:35 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-06-26 07:20:35 -0400 |
commit | 9400f73770d2b50e42cc44a64c5f5888e52a8948 (patch) | |
tree | 8b105f186cff40e870ea795973da831aa622a1ae /mod | |
parent | 64dcaa8cdc75669974501eb0627a5d5b348deb29 (diff) | |
download | elgg-9400f73770d2b50e42cc44a64c5f5888e52a8948.tar.gz elgg-9400f73770d2b50e42cc44a64c5f5888e52a8948.tar.bz2 |
not displaying the reply button for discussion topics in widgets
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/start.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php index 066b309a5..f35c058b6 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -663,7 +663,6 @@ function discussion_init() { // commenting not allowed on discussion topics (use a different annotation) elgg_register_plugin_hook_handler('permissions_check:comment', 'object', 'discussion_comment_override'); - elgg_extend_view('river/elements/responses', 'discussion/river'); $action_base = elgg_get_plugins_path() . 'groups/actions/discussion'; elgg_register_action('discussion/save', "$action_base/save.php"); @@ -765,7 +764,7 @@ function discussion_owner_block_menu($hook, $type, $return, $params) { * Add the reply button for the river */ function discussion_add_to_river_menu($hook, $type, $return, $params) { - if (elgg_is_logged_in()) { + if (elgg_is_logged_in() && !elgg_get_context('widgets')) { $item = $params['item']; $object = $item->getObjectEntity(); if (elgg_instanceof($object, 'object', 'groupforumtopic')) { |