mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
088aab44ea
commit
68abf41b94
1 changed files with 7 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue