Skip to content

Commit 6c6ef20

Browse files
authored
Prepend the installation name to the subject of notification emails sent to an admin (#860)
1 parent 0f4f596 commit 6c6ef20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public_html/lists/admin/lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ function sendAdminCopy($subject, $message, $lists = array())
642642
foreach ($mails as $admin_mail) {
643643
$admin_mail = trim($admin_mail);
644644
if (!isset($sent[$admin_mail]) && !empty($admin_mail)) {
645-
sendMail($admin_mail, $subject, $message, system_messageheaders($admin_mail));
645+
sendMail($admin_mail, $GLOBALS['installation_name'].' '.$subject, $message, system_messageheaders($admin_mail));
646646
// logEvent(s('Sending admin copy to').' '.$admin_mail);
647647
$sent[$admin_mail] = 1;
648648
}
@@ -1359,7 +1359,7 @@ function fetchUrlCurl($url, $request_parameters)
13591359
if (HTTP_PROXY_HOST and HTTP_PROXY_PORT) {
13601360
curl_setopt($curl, CURLOPT_PROXY, HTTP_PROXY_HOST);
13611361
curl_setopt($curl, CURLOPT_PROXYPORT, HTTP_PROXY_PORT);
1362-
}
1362+
}
13631363
$raw_result = curl_exec($curl);
13641364
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
13651365
curl_close($curl);

0 commit comments

Comments
 (0)