Commit 136171e5 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Rerender package comments after editing


Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 482bd10a
......@@ -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."));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment