aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-10 13:41:49 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-10 13:41:49 +0000
commitc766f56da4c6947096da31a882b596510fcc49db (patch)
treee84972d6155910d27f461250b977a0b3f39adc2c
parent86f4f555d8fadcb190f510f90c46ff4e3b537626 (diff)
downloadelgg-c766f56da4c6947096da31a882b596510fcc49db.tar.gz
elgg-c766f56da4c6947096da31a882b596510fcc49db.tar.bz2
if there is no group discussion, provide a link to create a topic
git-svn-id: http://code.elgg.org/elgg/trunk@6434 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/groups/views/default/groups/forum_latest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/groups/views/default/groups/forum_latest.php b/mod/groups/views/default/groups/forum_latest.php
index 142920cc4..3c6ce6ccf 100644
--- a/mod/groups/views/default/groups/forum_latest.php
+++ b/mod/groups/views/default/groups/forum_latest.php
@@ -22,7 +22,8 @@ if($vars['entity']->forum_enable != 'no'){
echo "</div>";
}
} else {
- echo "<p class='margin_top'>".elgg_echo("grouptopic:notcreated")."</p>";
+ $create_discussion = $vars['url'] . "mod/groups/addtopic.php?group_guid=" . page_owner();
+ echo "<p class='margin_top'><a href=\"{$create_discussion}\">".elgg_echo("groups:addtopic")."</a></p>";
}
}//end of forum active check