aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/river/forum/topic/create.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views/default/river/forum/topic/create.php')
-rw-r--r--mod/groups/views/default/river/forum/topic/create.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/mod/groups/views/default/river/forum/topic/create.php b/mod/groups/views/default/river/forum/topic/create.php
index 7b06cd275..a8d444465 100644
--- a/mod/groups/views/default/river/forum/topic/create.php
+++ b/mod/groups/views/default/river/forum/topic/create.php
@@ -16,13 +16,7 @@
$string .= "<a href=\"" . $url . "\">" . $object->title . "</a> <span class='entity_subtext'>" . friendly_time($object->time_created) . "</span> <a class='river_comment_form_button link' href=\"{$object_url}\">Visit discussion</a>";
$string .= elgg_view('likes/forms/link', array('entity' => $object));
$string .= "<div class=\"river_content_display\">";
- if(strlen($contents) > 200) {
- $string .= substr($contents, 0, strpos($contents, ' ', 200)) . "&hellip;";
- }else{
- $string .= $contents;
- }
+ $string .= elgg_make_excerpt($contents, 200);
$string .= "</div>";
-?>
-
-<?php echo $string; ?> \ No newline at end of file
+ echo $string; \ No newline at end of file