Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
aurweb
Commits
136171e5
Commit
136171e5
authored
Apr 23, 2017
by
Lukas Fleischer
Browse files
Rerender package comments after editing
Signed-off-by:
Lukas Fleischer
<
lfleischer@archlinux.org
>
parent
482bd10a
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/lib/pkgbasefuncs.inc.php
View file @
136171e5
...
...
@@ -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."
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment