diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2018-08-06 02:02:57 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2018-08-06 06:03:58 +0200 |
commit | 3578e77ad4e9258495eed7e786b7dc3aebcf1b63 (patch) | |
tree | 6261b4c66435d25ea10583c6a647d645e7182ed7 /web/html/pkgbase.php | |
parent | a7865ef5aa0309976b5dd2642210632babe106d9 (diff) | |
download | aur-3578e77ad4e9258495eed7e786b7dc3aebcf1b63.tar.gz aur-3578e77ad4e9258495eed7e786b7dc3aebcf1b63.tar.xz |
Allow listing all comments from a user
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html/pkgbase.php')
-rw-r--r-- | web/html/pkgbase.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php index cf9a6c60..46ad77e6 100644 --- a/web/html/pkgbase.php +++ b/web/html/pkgbase.php @@ -43,6 +43,7 @@ if (isset($_POST['IDs'])) { /* Perform package base actions. */ $via = isset($_POST['via']) ? $_POST['via'] : NULL; +$return_to = isset($_POST['return_to']) ? $_POST['return_to'] : NULL; $ret = false; $output = ""; $fragment = ""; @@ -133,7 +134,14 @@ if (check_token()) { /* Redirect back to package request page on success. */ header('Location: ' . get_pkgreq_route()); exit(); - } if (isset($base_id)) { + } elseif ((current_action("do_DeleteComment") || + current_action("do_UndeleteComment")) && $return_to) { + header('Location: ' . $return_to); + exit(); + } elseif (current_action("do_PinComment") && $return_to) { + header('Location: ' . $return_to); + exit(); + } elseif (isset($base_id)) { /* Redirect back to package base page on success. */ header('Location: ' . get_pkgbase_uri($pkgbase_name) . $fragment); exit(); |