mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Move package disowning to a separate page
The disown link in the package actions box leads to a new page (pkgdisown.php) that can be used to confirm package disowning. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
422d8026da
commit
0b8c11a37a
3 changed files with 64 additions and 4 deletions
|
@ -54,8 +54,13 @@ if (check_token()) {
|
|||
} elseif (current_action("do_Adopt")) {
|
||||
list($ret, $output) = pkgbase_adopt($ids, true, NULL);
|
||||
} elseif (current_action("do_Disown")) {
|
||||
$via = isset($_POST['via']) ? $_POST['via'] : NULL;
|
||||
list($ret, $output) = pkgbase_adopt($ids, false, $via);
|
||||
if (isset($_POST['confirm_Disown'])) {
|
||||
$via = isset($_POST['via']) ? $_POST['via'] : NULL;
|
||||
list($ret, $output) = pkgbase_adopt($ids, false, $via);
|
||||
} else {
|
||||
$output = __("The selected packages have not been disowned, check the confirmation checkbox.");
|
||||
$ret = false;
|
||||
}
|
||||
} elseif (current_action("do_Vote")) {
|
||||
list($ret, $output) = pkgbase_vote($ids, true);
|
||||
} elseif (current_action("do_UnVote")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue