diff options
author | canyonknight <canyonknight@gmail.com> | 2013-09-06 02:13:42 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2013-09-08 13:53:47 +0200 |
commit | dbf1d474f7eba3dd0911aa47626e58ccf8057a52 (patch) | |
tree | 4a9af5087e0c296fb6857bf9bab4589023d91cf2 /web/html/index.php | |
parent | 77f1b264ca0d2d4da8e4e2bb214c1c8f15fafcb4 (diff) | |
download | aur-dbf1d474f7eba3dd0911aa47626e58ccf8057a52.tar.gz aur-dbf1d474f7eba3dd0911aa47626e58ccf8057a52.tar.xz |
Convert adopt/disown package action link to form
* Changes adopting/disowning packages to use GET instead of POST
* Uses CSS to make form submit button look like a link
* Complements commit 3bc951e3d87eaf692a7e47cf16a28d838c7cb2bd
Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/index.php')
-rw-r--r-- | web/html/index.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/html/index.php b/web/html/index.php index be6c98d3..ccc94d23 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -25,6 +25,12 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { /* TODO: Remove support for legacy URIs and move these * actions to separate modules. */ switch ($tokens[3]) { + case "adopt": + $_POST['do_Adopt'] = __('Adopt'); + break; + case "disown": + $_POST['do_Disown'] = __('Disown'); + break; case "vote": $_POST['do_Vote'] = __('Vote'); break; |