mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove success message from comment form
To be more flexible with messages, we shouldn't always output this message when a comment has been sent. Moreover, currently it is not displayed due to the POST-Redirect-GET pattern, where the comment parameter is lost after redirection. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
ff659fa05c
commit
60433a930d
1 changed files with 0 additions and 5 deletions
|
@ -1,10 +1,5 @@
|
|||
<form action="<?= get_pkgbase_uri($pkgbase_name) ?>" method="post">
|
||||
<fieldset>
|
||||
<?php
|
||||
if (isset($_REQUEST['comment']) && check_token()) {
|
||||
echo '<p>' . __('Comment has been added.') . '</p>';
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<input type="hidden" name="action" value="<?= (isset($comment_id)) ? "do_EditComment" : "do_AddComment" ?>" />
|
||||
<input type="hidden" name="ID" value="<?= intval($base_id) ?>" />
|
||||
|
|
Loading…
Add table
Reference in a new issue