From: cash Date: Fri, 20 May 2011 02:16:09 +0000 (+0000) Subject: Fixes #3457 showing a snippet of a comment in sidebar instead of entire comment X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c88d043b487a1b26a0a09bc420d20bd109e2bd3a;p=lorea%2Felgg.git Fixes #3457 showing a snippet of a comment in sidebar instead of entire comment git-svn-id: http://code.elgg.org/elgg/trunk@9107 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/views/default/annotation/generic_comment.php b/views/default/annotation/generic_comment.php index 4a3407e1a..69520d102 100644 --- a/views/default/annotation/generic_comment.php +++ b/views/default/annotation/generic_comment.php @@ -63,9 +63,11 @@ HTML; $on = elgg_echo('on'); + $excerpt = elgg_get_excerpt($comment->value, 80); + $body = << - $commenter_link $on $entity_link ($friendlytime) + $commenter_link $on $entity_link ($friendlytime): $excerpt HTML; diff --git a/views/default/page/elements/comments_block.php b/views/default/page/elements/comments_block.php index 751aa4312..d0f8ab809 100644 --- a/views/default/page/elements/comments_block.php +++ b/views/default/page/elements/comments_block.php @@ -36,6 +36,7 @@ if ($comments) { 'items' => $comments, 'pagination' => false, 'list_class' => 'elgg-latest-comments', + 'full_view' => false, )); } else { $body = '

' . elgg_echo('generic_comment:none') . '

';