summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorcanyonknight@gmail.com <canyonknight@gmail.com>2012-12-06 04:03:41 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2012-12-07 23:24:11 +0100
commit20407bb8c60ff705b47df707e21a3e0f73faf239 (patch)
treef6f46f13aeb8f9e7d98fb4a9c4e0953fa82d6556 /web/html
parentc7d20163a4feaeed6e8c16a1e0a076e8e0c931aa (diff)
downloadaur-20407bb8c60ff705b47df707e21a3e0f73faf239.tar.gz
aur-20407bb8c60ff705b47df707e21a3e0f73faf239.tar.xz
Split package flagging and unflagging into separate functions
Currently, package flagging and unflagging takes place within the pkg_flag() function. A bool is set to true or false depending on the action. Create new pkg_unflag() function with sole purpose of unflagging and keep pkg_flag() in place. This split will be useful in the overhaul of the notification system. Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/packages.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index 094c221d..61825501 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -51,9 +51,9 @@ if (isset($_POST['IDs'])) {
$output = "";
if (check_token()) {
if (current_action("do_Flag")) {
- $output = pkg_flag($atype, $ids, true);
+ $output = pkg_flag($atype, $ids);
} elseif (current_action("do_UnFlag")) {
- $output = pkg_flag($atype, $ids, False);
+ $output = pkg_unflag($atype, $ids);
} elseif (current_action("do_Adopt")) {
$output = pkg_adopt($atype, $ids, true);
} elseif (current_action("do_Disown")) {