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:
Marcel Korpel 2015-08-17 00:08:51 +02:00 committed by Lukas Fleischer
parent ff659fa05c
commit 60433a930d

View file

@ -1,10 +1,5 @@
<form action="<?= get_pkgbase_uri($pkgbase_name) ?>" method="post"> <form action="<?= get_pkgbase_uri($pkgbase_name) ?>" method="post">
<fieldset> <fieldset>
<?php
if (isset($_REQUEST['comment']) && check_token()) {
echo '<p>' . __('Comment has been added.') . '</p>';
}
?>
<div> <div>
<input type="hidden" name="action" value="<?= (isset($comment_id)) ? "do_EditComment" : "do_AddComment" ?>" /> <input type="hidden" name="action" value="<?= (isset($comment_id)) ? "do_EditComment" : "do_AddComment" ?>" />
<input type="hidden" name="ID" value="<?= intval($base_id) ?>" /> <input type="hidden" name="ID" value="<?= intval($base_id) ?>" />