diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 17:01:26 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 17:01:26 +0000 |
commit | f23218799dcc49448603c95eabf1179c6f179533 (patch) | |
tree | bbe534636f20727e8407c30975f10203dbdca1d8 /views/default/layout/objects | |
parent | 8ef4d5c025357157fe8a444617806691fb9d8c2d (diff) | |
download | elgg-f23218799dcc49448603c95eabf1179c6f179533.tar.gz elgg-f23218799dcc49448603c95eabf1179c6f179533.tar.bz2 |
let likes code handle whether the user is logged in or not
git-svn-id: http://code.elgg.org/elgg/trunk@7772 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/objects')
-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)); |