diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2017-02-04 00:04:22 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2017-02-04 00:36:17 +0100 |
commit | 3b4c6e72a966c5344976990ed3214f2e184c90ad (patch) | |
tree | 9be608ee667633ca6400e8d79c82c8416e8c3cd2 /web/html | |
parent | ac745f656d4c8d19cdcf8d843d6855c6b45a3974 (diff) | |
download | aur-3b4c6e72a966c5344976990ed3214f2e184c90ad.tar.gz aur-3b4c6e72a966c5344976990ed3214f2e184c90ad.tar.xz |
Refactor pkg_search_page()
* Pass search parameters using an associative array instead of $_GET.
* Add a boolean parameter to enable and disable headers/footers.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/packages.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/packages.php b/web/html/packages.php index 8fd3266a..ec6fc757 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -99,9 +99,9 @@ if (isset($pkgid)) { $_GET['SO'] = 'd'; } if (isset($_COOKIE["AURSID"])) { - pkg_search_page($_COOKIE["AURSID"]); + pkg_search_page($_GET, true, $_COOKIE["AURSID"]); } else { - pkg_search_page(); + pkg_search_page($_GET, true); } } |