Signed-off-by: Marcel Korpel <[email protected]>
---
Change since v1:
* Always close outer <div> element.

 web/template/pkg_comments.php | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index 26fddfd..373f0ed 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -62,13 +62,11 @@ $count = pkgbase_comments_count($base_id, $include_deleted);
                                <?= parse_comment($row['Comments']) ?>
                        </p>
                </div>
-       <?php endwhile; ?>
-</div>
+       <?php endwhile;
 
-<?php if ($count > 10 && !isset($_GET['comments'])): ?>
-<div id="news">
+if ($count > 10 && !isset($_GET['comments'])): ?>
        <h3>
                <a href="<?= htmlentities(get_pkgbase_uri($pkgbase_name), 
ENT_QUOTES) . '?' . mkurl('comments=all') ?>" title="<?= __('View all 
comments') ?> (<?= $count ?>)"><?= __('All comments', $count) ?></a>
        </h3>
-</div>
 <?php endif; ?>
+</div>
-- 
2.4.6

Reply via email to