[aur-dev] [PATCH 3/5] Include reason for closing a request in the subject

Lukas Fleischer archlinux at cryptocrack.de
Fri Jul 4 05:28:23 EDT 2014


Change the subject of notification emails sent when closing a request to
be either "Request Accepted" or "Request Rejected".

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/lib/pkgreqfuncs.inc.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php
index fccf0b2..8266c67 100644
--- a/web/lib/pkgreqfuncs.inc.php
+++ b/web/lib/pkgreqfuncs.inc.php
@@ -221,8 +221,8 @@ function pkgreq_close($id, $reason, $comments) {
 		    "In-Reply-To: $thread_id\r\n" .
 		    "References: $thread_id\r\n" .
 		    "X-Mailer: AUR";
-	@mail($AUR_REQUEST_ML, "[PRQ#" . $id . "] Request Closed", $body,
-	      $headers);
+	@mail($AUR_REQUEST_ML, "[PRQ#" . $id . "] Request " . ucfirst($reason),
+	      $body, $headers);
 
 	return array(true, __("Request closed successfully."));
 }
-- 
2.0.1



More information about the aur-dev mailing list