Display correct comment count on package base page

Show the correct number of package base comments in the tool tip message
of the "Latest Comments" link.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-07-23 11:14:40 +02:00
parent 088aab44ea
commit 68abf41b94

View file

@ -1,5 +1,11 @@
<?php
$base_id = pkgbase_from_pkgid($row['ID']);
if (isset($row['BaseID'])) {
/* On a package details page. */
$base_id = $row['BaseID'];
} else {
/* On a package base details page. */
$base_id = $row['ID'];
}
$count = pkgbase_comments_count($base_id);
?>
<div id="news">