summaryrefslogtreecommitdiff
path: root/web/lib/pkgfuncs.inc
diff options
context:
space:
mode:
authorAndrea Scarpino <andrea@archlinux.org>2009-02-15 23:22:33 +0100
committerLoui Chang <louipc.ist@gmail.com>2009-02-18 09:31:20 -0500
commit84f08cf82b5d35376df4287daca07eb9538c2d76 (patch)
treea3f1a90add706e236460e1039a8713409eba5c09 /web/lib/pkgfuncs.inc
parent710ff234fb49e3ba0e5b9d65f47f53a59c9fe2e4 (diff)
Add 'Out of Date' detail in search form
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/lib/pkgfuncs.inc')
-rw-r--r--web/lib/pkgfuncs.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 150f552..5ce659e 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -449,6 +449,10 @@ function pkg_search_page($SID="") {
$q.= "AND MaintainerUID = 0 ";
}
+ if (isset($_GET['outdated'])) {
+ $q .= "AND OutOfDate = 1 ";
+ }
+
$order = $_GET["SO"] == 'd' ? 'DESC' : 'ASC';
switch ($_GET["SB"]) {