mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
bd85441cf6
commit
b3a6809bad
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ if (!isset($count)) {
|
||||||
$heading .= ')</span>';
|
$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 ?>
|
<?= $heading ?>
|
||||||
<?php if ($is_deleted && has_credential(CRED_COMMENT_UNDELETE)): ?>
|
<?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); ?>">
|
<form class="undelete-comment-form" method="post" action="<?= htmlspecialchars(get_pkgbase_uri($pkgbase_name), ENT_QUOTES); ?>">
|
||||||
|
|
Loading…
Add table
Reference in a new issue