aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/object/blog.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/views/default/object/blog.php')
-rw-r--r--mod/blog/views/default/object/blog.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php
index 199a7c822..639031113 100644
--- a/mod/blog/views/default/object/blog.php
+++ b/mod/blog/views/default/object/blog.php
@@ -37,7 +37,10 @@ if ($blog->comments_on != 'Off') {
//only display if there are commments
if ($comments_count != 0) {
$text = elgg_echo("comments") . " ($comments_count)";
- $comments_link = "<a href=\"{$blog->getURL()}#annotations\">$text</a>";
+ $comments_link = elgg_view('output/url', array(
+ 'href' => $blog->getURL() . '#blog-comments',
+ 'text' => $text,
+ ));
} else {
$comments_link = '';
}
@@ -47,7 +50,7 @@ if ($blog->comments_on != 'Off') {
// access is always shown.
$metadata = '<ul class="elgg-list-metadata">';
-$metadata .= '<li>' . elgg_view('output/access', array('entity' => $vars['entity'])) . '</li>';
+$metadata .= '<li>' . elgg_view('output/access', array('entity' => $blog)) . '</li>';
if (isloggedin() && $blog->getOwnerGUID() != get_loggedin_userid()) {
$likes = elgg_view_likes($blog);
@@ -90,10 +93,6 @@ $subtitle = "$author_text $date $categories $comments_link";
if ($full) {
- $params = array(
- 'title' => $blog->title,
- 'buttons' => '',
- );
$header = elgg_view_title($blog->title);
$params = array(