summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib')
-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 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
*