summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorMarcel Korpel <marcel.korpel@gmail.com>2015-08-17 00:08:51 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-08-17 04:20:45 +0200
commit60433a930d6701cef1133cdb344fc76f24693636 (patch)
tree4cfc93e4ba6588225c981c987f79368b2bdd4d34 /web/template
parentff659fa05c3da5acde9c22c406daab807c22db51 (diff)
downloadaur-60433a930d6701cef1133cdb344fc76f24693636.tar.gz
aur-60433a930d6701cef1133cdb344fc76f24693636.tar.xz
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>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/pkg_comment_form.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/web/template/pkg_comment_form.php b/web/template/pkg_comment_form.php
index 7c16eb73..c450c4b3 100644
--- a/web/template/pkg_comment_form.php
+++ b/web/template/pkg_comment_form.php
@@ -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) ?>" />