From 5415bc945aa43e5ee293cd0b6025ccb62426c159 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 5 Apr 2014 19:33:32 +0200 Subject: Refactor pkgbase_comments() Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/lib/pkgfuncs.inc.php') diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 76fed89..c6b4a27 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'); } -- cgit v1.2.3-70-g09d2