Fixed duplicate ids caused from pinned comments introduced in 7d4c0c9 (Implement
capability to pin comments above others, 2012-12-12).

Signed-off-by: Mark Weiman <[email protected]>
---
 web/template/pkg_comments.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index d05c512..3178552 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -51,7 +51,7 @@ if (!isset($count)) {
                        $heading .= ')</span>';
                }
                ?>
-               <h4 id="comment-<?= $row['ID'] ?>"<?php if ($is_deleted): ?> 
class="comment-deleted"<?php endif; ?>>
+               <h4 id="<?= isset($pinned) ? "pinned-" : "comment-" ?><?= 
$row['ID'] ?>"<?php if ($is_deleted): ?> class="comment-deleted"<?php endif; ?>>
                        <?= $heading ?>
                        <?php if (!$is_deleted && 
can_delete_comment_array($row)): ?>
                                <form class="delete-comment-form" method="post" 
action="<?= htmlspecialchars(get_pkgbase_uri($pkgbase_name), ENT_QUOTES); ?>">
-- 
2.7.0

Reply via email to