summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-07-04 11:02:19 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-07-04 11:10:51 +0200
commit743f13e92d0f87e82a2c8de2b9554fd0bebfdee0 (patch)
tree3ccdbcf073738bfa31c6c72d90aee260788567d1 /web
parent4645bcbacbc4fd2fba2a3f28d6cd23bdfb184a9d (diff)
downloadaur-743f13e92d0f87e82a2c8de2b9554fd0bebfdee0.tar.gz
aur-743f13e92d0f87e82a2c8de2b9554fd0bebfdee0.tar.xz
Include reason for closing a request in the subject
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@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgreqfuncs.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php
index fccf0b24..8266c675 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."));
}