summaryrefslogtreecommitdiffstats
path: root/web/html/pkgbase.php
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-05-22 16:53:27 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-05-22 21:13:43 +0200
commit0b8c11a37ae9dbaa5ca4cf64204515db31ea2b3a (patch)
tree3f4302ae12161b3ee20823749eebda86c739d254 /web/html/pkgbase.php
parent422d8026daaae0a9bc7270f071da22f5d66c4f0a (diff)
downloadaurweb-0b8c11a37ae9dbaa5ca4cf64204515db31ea2b3a.tar.xz
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>
Diffstat (limited to 'web/html/pkgbase.php')
-rw-r--r--web/html/pkgbase.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php
index ef9b2c4..7c24b79 100644
--- a/web/html/pkgbase.php
+++ b/web/html/pkgbase.php
@@ -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")) {