aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-05 19:36:32 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-05 19:36:32 +0000
commited81771d23473786d1fb43bae0ea5ca7f0b441ad (patch)
tree10b3de9f27b8d4ce58f5da27a231b71b9fba26e8 /views/default
parent0a6e0702c71bb3aa50f0daae21c456c51a362b27 (diff)
downloadelgg-ed81771d23473786d1fb43bae0ea5ca7f0b441ad.tar.gz
elgg-ed81771d23473786d1fb43bae0ea5ca7f0b441ad.tar.bz2
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
Diffstat (limited to 'views/default')
-rw-r--r--views/default/annotation/generic_comment.php6
1 files changed, 1 insertions, 5 deletions
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) {
<span class="entity-subtext">$commenter_link $on <span class='entity-title'>$entity_link</span> ($friendlytime)</span>
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;