mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Rerender package comments after editing
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
482bd10a8b
commit
136171e509
1 changed files with 3 additions and 0 deletions
|
@ -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."));
|
||||||
|
|
Loading…
Add table
Reference in a new issue