diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-01 11:26:21 -0600 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-03-04 10:29:15 +0100 |
commit | d1d0288598bb8f2fca299e0e3e6eadc6d4fbc32d (patch) | |
tree | 89a4ca38853e391eab80fd888facd79619e7d94d /web/lib | |
parent | bbc90846f5f40dff92eca7ffafbcf6daa98956e3 (diff) |
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')
-rw-r--r-- | web/lib/pkgfuncs.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 1be503a..ef8c20f 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 * |