From ed81771d23473786d1fb43bae0ea5ca7f0b441ad Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 5 Dec 2010 19:36:32 +0000 Subject: added a convience function for the media content pattern - is elgg_view_media() a good name? git-svn-id: http://code.elgg.org/elgg/trunk@7538 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/annotation/generic_comment.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'views/default') diff --git a/views/default/annotation/generic_comment.php b/views/default/annotation/generic_comment.php index 3fc55e84a..bb0127bfe 100644 --- a/views/default/annotation/generic_comment.php +++ b/views/default/annotation/generic_comment.php @@ -42,11 +42,7 @@ if ($full_view) { $commenter_link $on $entity_link ($friendlytime) HTML; - $params = array( - 'icon' => $commenter_icon, - 'body' => $body, - ); - echo elgg_view('layout_elements/media', $params); + echo elgg_view_media($commenter_icon, $body); // @todo remove this once the full view has been rewritten return true; -- cgit v1.2.3