Add action lookup helper function

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Dan McGee 2011-03-01 11:26:21 -06:00 committed by Lukas Fleischer
parent bbc90846f5
commit d1d0288598
2 changed files with 16 additions and 11 deletions

View file

@ -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
*