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

Signed-off-by: Lukas Fleischer <[email protected]>
---
 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

Reply via email to