summaryrefslogtreecommitdiffstats
path: root/web/html/pkgbase.php
diff options
context:
space:
mode:
authorMark Weiman <mark.weiman@markzz.com>2015-12-11 19:01:31 -0500
committerLukas Fleischer <lfleischer@archlinux.org>2015-12-12 15:09:47 +0100
commit7d4c0c9ffa55ca60aea24b6aa64417783a15ea80 (patch)
treed5f9ddb43f6af10feb2ac375ed4ad87bf4771c93 /web/html/pkgbase.php
parent3088fd0f389dbe4be1c7e62931ed18658ca6d7a2 (diff)
downloadaurweb-7d4c0c9ffa55ca60aea24b6aa64417783a15ea80.tar.xz
Implement capability to pin comments above others
Adds capability to pin comments before others. Implements FS#10863. Signed-off-by: Mark Weiman <mark.weiman@markzz.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html/pkgbase.php')
-rw-r--r--web/html/pkgbase.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php
index cbbf3cc..45b8084 100644
--- a/web/html/pkgbase.php
+++ b/web/html/pkgbase.php
@@ -99,6 +99,10 @@ if (check_token()) {
list($ret, $output) = pkgbase_notify($ids, false);
} elseif (current_action("do_DeleteComment")) {
list($ret, $output) = pkgbase_delete_comment();
+ } elseif (current_action("do_PinComment")) {
+ list($ret, $output) = pkgbase_pin_comment();
+ } elseif (current_action("do_UnpinComment")) {
+ list($ret, $output) = pkgbase_pin_comment(true);
} elseif (current_action("do_SetKeywords")) {
list($ret, $output) = pkgbase_set_keywords($base_id, preg_split("/[\s,;]+/", $_POST['keywords'], -1, PREG_SPLIT_NO_EMPTY));
} elseif (current_action("do_FileRequest")) {