[aur-dev] [PATCH 5/6] Add IDs to comments

Marcel Korpel marcel.korpel at gmail.com
Fri Jul 10 14:24:07 UTC 2015


Signed-off-by: Marcel Korpel <marcel.korpel at gmail.com>
---
 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 380c858..8d6675b 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -31,7 +31,7 @@ $count = pkgbase_comments_count($base_id, $include_deleted);
 		} else {
 			$row['EditUserName'] = htmlspecialchars($row['EditUserName']);
 		} ?>
-		<h4<?php if ($row['DelUsersID']): ?> class="comment-deleted"<?php endif; ?>>
+		<h4 id="comment-<?= $row['ID'] ?>"<?php if ($row['DelUsersID']): ?> class="comment-deleted"<?php endif; ?>>
 			<?php if ($row['UserName']): ?>
 			<?= __('%s commented', $row['UserName']) ?>
 			<?php else: ?>
-- 
2.4.5


More information about the aur-dev mailing list