diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2017-04-23 21:22:52 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2017-04-24 17:41:35 +0200 |
commit | 136171e509b78d89b095bc5599bc158acd1250e7 (patch) | |
tree | cb1d6494faab9c8b990817654d073f01fe34c78f /web | |
parent | 482bd10a8bf4906e79fa6e056b94dc90e3a74901 (diff) | |
download | aur-136171e509b78d89b095bc5599bc158acd1250e7.tar.gz aur-136171e509b78d89b095bc5599bc158acd1250e7.tar.xz |
Rerender package comments after editing
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/lib/pkgbasefuncs.inc.php | 3 |
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.")); |