diff options
author | Marcel Korpel <marcel.korpel@gmail.com> | 2015-07-10 18:47:32 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-08-08 12:59:24 +0200 |
commit | e331ce273cab901726983e18249e0bb3455fc463 (patch) | |
tree | 8004583c0b468f1fb5163ae33a23b9f50427ce7b /web/html | |
parent | 92e19e95f3c07745e7ba7c6e358921b7789f8abe (diff) | |
download | aurweb-e331ce273cab901726983e18249e0bb3455fc463.tar.xz |
Support comment editing in the backend
Create two new actions, do_AddComment and do_EditComment. When editing
or deleting a comment, a timestamp is added.
Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/pkgbase.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php index f908029..5886f71 100644 --- a/web/html/pkgbase.php +++ b/web/html/pkgbase.php @@ -108,6 +108,8 @@ if (check_token()) { $uid = uid_from_sid($_COOKIE["AURSID"]); pkgbase_add_comment($base_id, $uid, $_REQUEST['comment']); $ret = true; + } elseif (current_action("do_EditComment")) { + list($ret, $output) = pkgbase_edit_comment($_REQUEST['comment']); } if ($ret) { |