diff options
-rw-r--r-- | mod/search/views/default/search/comments/entity.php | 4 | ||||
-rw-r--r-- | views/default/annotation/generic_comment.php | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/mod/search/views/default/search/comments/entity.php b/mod/search/views/default/search/comments/entity.php index 3bfd01033..0d253c567 100644 --- a/mod/search/views/default/search/comments/entity.php +++ b/mod/search/views/default/search/comments/entity.php @@ -38,7 +38,7 @@ if ($entity->getVolatileData('search_unavailable_entity')) { } $title = sprintf(elgg_echo('search:comment_on'), $title); - $url = $entity->getURL() . '#annotation-' . $entity->getVolatileData('search_match_annotation_id'); + $url = $entity->getURL() . '#comment_' . $entity->getVolatileData('search_match_annotation_id'); $title = "<a href=\"$url\">$title</a>"; } @@ -56,4 +56,4 @@ echo <<<___END </div> ___END; -?>
\ No newline at end of file +?> diff --git a/views/default/annotation/generic_comment.php b/views/default/annotation/generic_comment.php index ebcae0f97..02a6abb71 100644 --- a/views/default/annotation/generic_comment.php +++ b/views/default/annotation/generic_comment.php @@ -6,6 +6,7 @@ $owner = get_user($vars['annotation']->owner_guid); ?> +<a name="comment_<?php echo $vars['annotation']->id; ?>"></a> <div class="generic_comment clearfloat"> <div class="generic_comment_icon"> <?php @@ -15,7 +16,7 @@ $owner = get_user($vars['annotation']->owner_guid); )); ?> </div> - + <div class="generic_comment_details"> <?php // if the user looking at the comment can edit, show the delete link |