diff options
author | Mark Weiman <mark.weiman@markzz.com> | 2016-01-23 00:15:33 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2016-01-24 21:34:54 +0100 |
commit | b3a6809bada24c35dad7772b3b91685a2e24cb42 (patch) | |
tree | 3cb4021dea942f07250e2cbeb1e0203d3818a23a | |
parent | bd85441cf66b39d887f01654913da58ef313d14c (diff) | |
download | aur-b3a6809bada24c35dad7772b3b91685a2e24cb42.tar.gz aur-b3a6809bada24c35dad7772b3b91685a2e24cb42.tar.xz |
Fix duplicate ids from pinned comments
Fixed duplicate ids caused from pinned comments introduced in 7d4c0c9
(Implement capability to pin comments above others, 2015-12-12).
Signed-off-by: Mark Weiman <mark.weiman@markzz.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r-- | web/template/pkg_comments.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index c45e45b0..a28e41b0 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 && has_credential(CRED_COMMENT_UNDELETE)): ?> <form class="undelete-comment-form" method="post" action="<?= htmlspecialchars(get_pkgbase_uri($pkgbase_name), ENT_QUOTES); ?>"> |