diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 18:14:15 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 18:14:15 +0000 |
commit | 0c0369e71e07e3854cc77625ccaee4642af4cecb (patch) | |
tree | d49849aa44ee731fecc2d223ff79b8ec8c06da91 /mod/blog/views | |
parent | 2711884a9245601acb706d4d8f39708e45a4b91c (diff) | |
download | elgg-0c0369e71e07e3854cc77625ccaee4642af4cecb.tar.gz elgg-0c0369e71e07e3854cc77625ccaee4642af4cecb.tar.bz2 |
let likes code handle logged in user status
git-svn-id: http://code.elgg.org/elgg/trunk@7746 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views')
-rw-r--r-- | mod/blog/views/default/object/blog.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index 19018492a..4afc8b6d7 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -52,10 +52,10 @@ if ($blog->comments_on != 'Off') { $metadata = '<ul class="elgg-list-metadata">'; $metadata .= '<li>' . elgg_view('output/access', array('entity' => $blog)) . '</li>'; -if (isloggedin() && $blog->getOwnerGUID() != get_loggedin_userid()) { - $likes = elgg_view_likes($blog); - $metadata .= "<li>$likes</li>"; -} + +$likes = elgg_view_likes($blog); +$metadata .= "<li>$likes</li>"; + // pass <li>your data</li> back from the view $metadata .= elgg_view("entity/metadata", array('entity' => $blog)); |