]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added anchor names for comments.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 24 Mar 2010 22:39:02 +0000 (22:39 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 24 Mar 2010 22:39:02 +0000 (22:39 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5499 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/search/views/default/search/comments/entity.php
views/default/annotation/generic_comment.php

index 3bfd010335366d73c266005e0b43b1e86599876c..0d253c567ecec8e7046e3fde42b6a5c2e6ccbec3 100644 (file)
@@ -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
+?>
index ebcae0f974ae1dce43a8d592cbcd5853c7400a73..02a6abb71d0daba6cd9df2ea341424e64df1bb4a 100644 (file)
@@ -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