diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/layout/objects/list/metadata.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/views/default/layout/objects/list/metadata.php b/views/default/layout/objects/list/metadata.php index ed3dfe046..6b2fae7bf 100644 --- a/views/default/layout/objects/list/metadata.php +++ b/views/default/layout/objects/list/metadata.php @@ -15,10 +15,9 @@ $handler = $vars['handler']; <?php echo elgg_view('output/access', array('entity' => $entity)); ?> </li> <?php -if (isloggedin() && $entity->getOwnerGUID() != get_loggedin_userid()) { - $likes = elgg_view_likes($file); - echo "<li>$likes</li>"; -} + +$likes = elgg_view_likes($entity); +echo "<li>$likes</li>"; // pass <li>your data</li> back from the view echo elgg_view("entity/metadata", array('entity' => $entity)); |