]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3457 showing a snippet of a comment in sidebar instead of entire comment
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 20 May 2011 02:16:09 +0000 (02:16 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 20 May 2011 02:16:09 +0000 (02:16 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9107 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/annotation/generic_comment.php
views/default/page/elements/comments_block.php

index 4a3407e1a102f8ff1471905594f9e0c18930a39d..69520d1021e2493fe8ae12aee11e1a5c60a93d59 100644 (file)
@@ -63,9 +63,11 @@ HTML;
 
        $on = elgg_echo('on');
 
+       $excerpt = elgg_get_excerpt($comment->value, 80);
+
        $body = <<<HTML
 <span class="elgg-subtext">
-       $commenter_link $on $entity_link ($friendlytime)
+       $commenter_link $on $entity_link ($friendlytime): $excerpt
 </span>
 HTML;
 
index 751aa43121d09b92732fe4aff467f67ca2686ad6..d0f8ab8099903bae2cdb0b1cb1ae83faf999719e 100644 (file)
@@ -36,6 +36,7 @@ if ($comments) {
                'items' => $comments,
                'pagination' => false,
                'list_class' => 'elgg-latest-comments',
+               'full_view' => false,
        ));
 } else {
        $body = '<p>' . elgg_echo('generic_comment:none') . '</p>';