- Timestamp:
- 09/01/10 16:47:43 (21 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/views/default/edufeedr/singles/educourse_comment.php
r155 r156 33 33 // Content 34 34 $body .= '<div class="edufeedr_comment_content">'; 35 // Getting comment content plaintext 36 $comment_content = strip_tags($vars['comment']['content']); 35 37 if ($type == 'coursefeed') { 36 if (strlen($ vars['comment']['content'])>200) {37 $last_space = strrpos(substr($ vars['comment']['content'], 0, 200), ' ');38 $body .= substr($ vars['comment']['content'], 0, $last_space);38 if (strlen($comment_content)>200) { 39 $last_space = strrpos(substr($comment_content, 0, 200), ' '); 40 $body .= substr($comment_content, 0, $last_space); 39 41 } else { 40 $body .= $ vars['comment']['content'];42 $body .= $comment_content; 41 43 } 42 44 } else if ($type == 'viewpost'){ … … 48 50 if ($vars['comment']['post_id']) { 49 51 /*translation:read more*/ 50 $body .= '<a href="'.$vars['url'].'pg/edufeedr/view_post/'.$vars['educourse']->getGUID().'/'.$ comment['post_id'].'">' . elgg_echo('edufeedr:read:more') . '</a>';52 $body .= '<a href="'.$vars['url'].'pg/edufeedr/view_post/'.$vars['educourse']->getGUID().'/'.$vars['comment']['post_id'].'">' . elgg_echo('edufeedr:read:more') . '</a>'; 51 53 if ($can_edit) { 52 54 $body .= ' | ';
