aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-05 00:20:57 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-05 00:20:57 +0000
commit5b1dd341173a44984315cfade6dd1c26bef8efb7 (patch)
treee427993d466032dd2ce4b9ba90fc132cbdc7d5d9 /mod
parentaaced028268109c9ed75cb2d02224a3c65797aa3 (diff)
downloadelgg-5b1dd341173a44984315cfade6dd1c26bef8efb7.tar.gz
elgg-5b1dd341173a44984315cfade6dd1c26bef8efb7.tar.bz2
Fixes #3275 forms in a river item are not forced to be hidden
git-svn-id: http://code.elgg.org/elgg/trunk@8942 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/languages/en.php2
-rw-r--r--mod/groups/start.php3
-rw-r--r--mod/groups/views/default/river/object/groupforumtopic/create.php6
3 files changed, 7 insertions, 4 deletions
diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php
index 789a9efe8..dc65244fd 100644
--- a/mod/groups/languages/en.php
+++ b/mod/groups/languages/en.php
@@ -126,6 +126,8 @@ $english = array(
'discussion:reply:deleted' => 'Discussion reply has been deleted.',
'discussion:reply:error:notdeleted' => 'Could not delete the discussion reply',
+ 'reply:this' => 'Reply to this',
+
'group:replies' => 'Replies',
'groups:forum:created' => 'Created %s with %d comments',
'groups:forum:created:single' => 'Created %s with %d reply',
diff --git a/mod/groups/start.php b/mod/groups/start.php
index b7047144b..ee99ac9b4 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -731,7 +731,8 @@ function discussion_add_to_river_menu($hook, $type, $return, $params) {
$options = array(
'name' => 'reply',
'href' => "#groups-reply-$object->guid",
- 'text' => elgg_echo('reply'),
+ 'text' => elgg_view_icon('speech-bubble'),
+ 'title' => elgg_echo('reply:this'),
'class' => "elgg-toggler",
'priority' => 50,
);
diff --git a/mod/groups/views/default/river/object/groupforumtopic/create.php b/mod/groups/views/default/river/object/groupforumtopic/create.php
index ca4747338..466196921 100644
--- a/mod/groups/views/default/river/object/groupforumtopic/create.php
+++ b/mod/groups/views/default/river/object/groupforumtopic/create.php
@@ -36,7 +36,7 @@ if ($excerpt) {
if (elgg_is_logged_in() && $container->canWriteToContainer()) {
// inline comment form
- echo elgg_view_form('discussion/reply/save', array(
- 'id' => "groups-reply-{$object->getGUID()}",
- ), array('entity' => $object, 'inline' => true));
+ $form_vars = array('id' => "groups-reply-{$object->getGUID()}", 'class' => 'hidden');
+ $body_vars = array('entity' => $object, 'inline' => true);
+ echo elgg_view_form('discussion/reply/save', $form_vars, $body_vars);
}