aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/river/object/groupforumtopic
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-06-24 07:52:27 -0400
committerCash Costello <cash.costello@gmail.com>2011-06-24 07:52:27 -0400
commitfb0a9d896b9a0bd1193c63badad6a1990afc0109 (patch)
tree595e666f22aa3852ac2320b7b6192f64ab5c1d76 /mod/groups/views/default/river/object/groupforumtopic
parent9edc8c6004d1236a21e03fb1c820a6e749f1ee3b (diff)
downloadelgg-fb0a9d896b9a0bd1193c63badad6a1990afc0109.tar.gz
elgg-fb0a9d896b9a0bd1193c63badad6a1990afc0109.tar.bz2
fixed group forum discussion inline replies for activity page
Diffstat (limited to 'mod/groups/views/default/river/object/groupforumtopic')
-rw-r--r--mod/groups/views/default/river/object/groupforumtopic/create.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/groups/views/default/river/object/groupforumtopic/create.php b/mod/groups/views/default/river/object/groupforumtopic/create.php
index f92e54a5c..80e7b09aa 100644
--- a/mod/groups/views/default/river/object/groupforumtopic/create.php
+++ b/mod/groups/views/default/river/object/groupforumtopic/create.php
@@ -7,7 +7,16 @@ $object = $vars['item']->getObjectEntity();
$excerpt = strip_tags($object->description);
$excerpt = elgg_get_excerpt($excerpt);
+$responses = '';
+if (elgg_is_logged_in() && $object->canAnnotate(0, 'group_topic_post')) {
+ // inline comment form
+ $form_vars = array('id' => "groups-reply-{$object->getGUID()}", 'class' => 'hidden');
+ $body_vars = array('entity' => $object, 'inline' => true);
+ $responses = elgg_view_form('discussion/reply/save', $form_vars, $body_vars);
+}
+
echo elgg_view('river/item', array(
'item' => $vars['item'],
'message' => $excerpt,
+ 'responses' => $responses,
));