summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-04-05 19:33:32 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-04-05 19:52:51 +0200
commit5415bc945aa43e5ee293cd0b6025ccb62426c159 (patch)
treee8127c3eb05c4d43986dcba9a865e2eaa54a800f /web/lib/pkgfuncs.inc.php
parent122636cbb6413d67c37ba73bd7014ae0a977d5c4 (diff)
downloadaur-5415bc945aa43e5ee293cd0b6025ccb62426c159.tar.gz
aur-5415bc945aa43e5ee293cd0b6025ccb62426c159.tar.xz
Refactor pkgbase_comments()
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/pkgfuncs.inc.php')
-rw-r--r--web/lib/pkgfuncs.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 76fed89a..c6b4a27f 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -301,7 +301,8 @@ function pkg_display_details($id=0, $row, $SID="") {
include('pkg_comment_form.php');
}
- $comments = pkgbase_comments($base_id);
+ $limit = isset($_GET['comments']) ? 0 : 10;
+ $comments = pkgbase_comments($base_id, $limit);
if (!empty($comments)) {
include('pkg_comments.php');
}