diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-04-04 21:57:01 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-04-05 12:21:35 +0200 |
commit | d35cf67f7ba24a6c8f6c27f6f016b6f28c8e9f9b (patch) | |
tree | 522f403f26130ddae25a2c7ca9427b3008c891a5 /web/template | |
parent | b7941073acec76e5b4f89648aca1413c15eb067f (diff) | |
download | aurweb-d35cf67f7ba24a6c8f6c27f6f016b6f28c8e9f9b.tar.xz |
Store comments on a per-package base basis
Move comments from the Packages table to PackageBases. Sharing comments
makes sense since they almost always refer to a source package.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/pkg_comments.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index 88e739e..820ba6e 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -1,6 +1,7 @@ <?php $uid = uid_from_sid($SID); -$count = package_comments_count($row['ID']); +$base_id = pkgbase_from_pkgid($row['ID']); +$count = package_comments_count($base_id); $pkgname = $row['Name']; ?> <div id="news"> |