mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Add ability to search for non-out-of-date packages (fixes FS#17896).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
4b2b8afb8a
commit
c39183c3ee
2 changed files with 20 additions and 6 deletions
|
@ -491,7 +491,12 @@ function pkg_search_page($SID="") {
|
|||
}
|
||||
|
||||
if (isset($_GET['outdated'])) {
|
||||
$q .= "AND OutOfDateTS IS NOT NULL ";
|
||||
if ($_GET['outdated'] == 'on') {
|
||||
$q .= "AND OutOfDateTS IS NOT NULL ";
|
||||
}
|
||||
elseif ($_GET['outdated'] == 'off') {
|
||||
$q .= "AND OutOfDateTS IS NULL ";
|
||||
}
|
||||
}
|
||||
|
||||
$order = $_GET["SO"] == 'd' ? 'DESC' : 'ASC';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue