mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Drop suffixes from confirm parameters
Remove the _delete and _disown suffixes from HTTP POST confirmation parameters. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
9b19f7595e
commit
5c64ae1a0e
8 changed files with 9 additions and 9 deletions
|
@ -54,7 +54,7 @@ if (check_token()) {
|
|||
} elseif (current_action("do_Adopt")) {
|
||||
list($ret, $output) = pkgbase_adopt($ids, true, NULL);
|
||||
} elseif (current_action("do_Disown")) {
|
||||
if (isset($_POST['confirm_Disown'])) {
|
||||
if (isset($_POST['confirm'])) {
|
||||
$via = isset($_POST['via']) ? $_POST['via'] : NULL;
|
||||
list($ret, $output) = pkgbase_adopt($ids, false, $via);
|
||||
} else {
|
||||
|
@ -66,7 +66,7 @@ if (check_token()) {
|
|||
} elseif (current_action("do_UnVote")) {
|
||||
list($ret, $output) = pkgbase_vote($ids, false);
|
||||
} elseif (current_action("do_Delete")) {
|
||||
if (isset($_POST['confirm_Delete'])) {
|
||||
if (isset($_POST['confirm'])) {
|
||||
$via = isset($_POST['via']) ? $_POST['via'] : NULL;
|
||||
if (!isset($_POST['merge_Into']) || empty($_POST['merge_Into'])) {
|
||||
list($ret, $output) = pkgbase_delete($ids, NULL, $via);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue