summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-01 18:26:21 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-03-04 10:29:15 +0100
commitd1d0288598bb8f2fca299e0e3e6eadc6d4fbc32d (patch)
tree89a4ca38853e391eab80fd888facd79619e7d94d /web/lib/pkgfuncs.inc
parentbbc90846f5f40dff92eca7ffafbcf6daa98956e3 (diff)
downloadaur-d1d0288598bb8f2fca299e0e3e6eadc6d4fbc32d.tar.gz
aur-d1d0288598bb8f2fca299e0e3e6eadc6d4fbc32d.tar.xz
Add action lookup helper function
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/pkgfuncs.inc')
-rw-r--r--web/lib/pkgfuncs.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 1be503ae..ef8c20f3 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -605,6 +605,11 @@ function pkg_search_page($SID="") {
return;
}
+function current_action($action) {
+ return (isset($_POST['action']) && $_POST['action'] == $action) ||
+ isset($_POST[$action]);
+}
+
/**
* Flag and un-flag packages out-of-date
*