mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove reassignment of base_id in pkg_comments.php
Removes reassignment of $base_id in web/template/pkg_comments.php as it is assigned in both pkgbase_display_details() and pkg_display_details(). Signed-off-by: Mark Weiman <mark.weiman@markzz.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
a9048bb07f
commit
3088fd0f38
1 changed files with 0 additions and 7 deletions
|
@ -1,11 +1,4 @@
|
|||
<?php
|
||||
if (isset($row['BaseID'])) {
|
||||
/* On a package details page. */
|
||||
$base_id = $row['BaseID'];
|
||||
} else {
|
||||
/* On a package base details page. */
|
||||
$base_id = $row['ID'];
|
||||
}
|
||||
$include_deleted = has_credential(CRED_COMMENT_VIEW_DELETED);
|
||||
$count = pkgbase_comments_count($base_id, $include_deleted);
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue