Rerender package comments after editing

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2017-04-23 21:22:52 +02:00
parent 482bd10a8b
commit 136171e509

View file

@ -1041,6 +1041,9 @@ function pkgbase_edit_comment($comment) {
$q.= "EditedTS = " . strval(time()) . " "; $q.= "EditedTS = " . strval(time()) . " ";
$q.= "WHERE ID = ".intval($comment_id); $q.= "WHERE ID = ".intval($comment_id);
$dbh->exec($q); $dbh->exec($q);
render_comment($comment_id);
return array(true, __("Comment has been edited.")); return array(true, __("Comment has been edited."));
} else { } else {
return array(false, __("You are not allowed to edit this comment.")); return array(false, __("You are not allowed to edit this comment."));