[aur-dev] [PATCH 1/2] Remove success message from comment form

Marcel Korpel marcel.korpel at gmail.com
Sun Aug 16 22:08:51 UTC 2015


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 at gmail.com>
---
 web/template/pkg_comment_form.php | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/web/template/pkg_comment_form.php b/web/template/pkg_comment_form.php
index 7c16eb7..c450c4b 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) ?>" />
-- 
2.5.0


More information about the aur-dev mailing list