[aur-dev] [PATCH v4 1/4] pkg_comments.php: Merge two DIVs with same ID

Marcel Korpel marcel.korpel at gmail.com
Tue Jul 21 20:53:54 UTC 2015


Signed-off-by: Marcel Korpel <marcel.korpel at gmail.com>
---
Change since v3:
* Don't merge multiple statements in one PHP block.

 web/template/pkg_comments.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index 26fddfd..bb006b9 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -63,12 +63,10 @@ $count = pkgbase_comments_count($base_id, $include_deleted);
 			</p>
 		</div>
 	<?php endwhile; ?>
-</div>
 
 <?php if ($count > 10 && !isset($_GET['comments'])): ?>
-<div id="news">
 	<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


More information about the aur-dev mailing list