summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgbasefuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-04-23 21:22:52 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2017-04-24 17:41:35 +0200
commit136171e509b78d89b095bc5599bc158acd1250e7 (patch)
treecb1d6494faab9c8b990817654d073f01fe34c78f /web/lib/pkgbasefuncs.inc.php
parent482bd10a8bf4906e79fa6e056b94dc90e3a74901 (diff)
downloadaur-136171e509b78d89b095bc5599bc158acd1250e7.tar.gz
aur-136171e509b78d89b095bc5599bc158acd1250e7.tar.xz
Rerender package comments after editing
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib/pkgbasefuncs.inc.php')
-rw-r--r--web/lib/pkgbasefuncs.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index 3e783094..ff1bc901 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -1041,6 +1041,9 @@ function pkgbase_edit_comment($comment) {
$q.= "EditedTS = " . strval(time()) . " ";
$q.= "WHERE ID = ".intval($comment_id);
$dbh->exec($q);
+
+ render_comment($comment_id);
+
return array(true, __("Comment has been edited."));
} else {
return array(false, __("You are not allowed to edit this comment."));