Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-19 09:47:13 +0100
committerErich Eckner <git@eckner.net>2019-02-19 09:47:13 +0100
commit37ba3ac0ca27ed3c68be6da97cb68a0a86bd5934 (patch)
tree1824a985cebb52ebcbe3423f84a1ab4028d796f2 /lib
parent2653ca5ae8e9836339aac14e8c891b7b9b26367f (diff)
lib/style.php: take list of columns/sorts as parameter in print_package_listing() -> print_listing()
Diffstat (limited to 'lib')
-rw-r--r--lib/style.php5
1 files changed, 2 insertions, 3 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=\"?";