Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/style.php5
-rw-r--r--packages/index.php4
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/style.php b/lib/style.php
index cc7b47d..a8f3163 100644
--- a/lib/style.php
+++ b/lib/style.php
@@ -191,14 +191,13 @@ function query_package_listing($filter, $limit, $float_columns, $count_only, $ex
}
}
-function print_package_listing($list, $print_order_links) {
+function print_listing($list, $print_order_links, $columns) {
- global $pkglist_sorts;
print " <table class=\"results\">\n";
print " <thead>\n";
print " <tr>\n";
- foreach ($pkglist_sorts as $get => $sort) {
+ foreach ($columns as $get => $sort) {
print " <th>\n";
if ($print_order_links) {
print " <a href=\"?";
diff --git a/packages/index.php b/packages/index.php
index b36142f..fb568da 100644
--- a/packages/index.php
+++ b/packages/index.php
@@ -306,7 +306,7 @@ if (count($exact_matches) > 0) {
<p><?php print count($exact_matches); ?> exact match<?php if (count($exact_matches) != 1) print "es"; ?> found.</p>
</div>
<?php
- print_package_listing($exact_matches, false);
+ print_listing($exact_matches, false, $pkglist_sorts);
?>
</div>
<?php
@@ -318,7 +318,7 @@ if (count($exact_matches) > 0) {
header_and_footer();
- print_package_listing($fuzzy_matches, true);
+ print_listing($fuzzy_matches, true, $pkglist_sorts);
header_and_footer();