Take the site address from SITE_URL.

The feed links, the notification email, the webmaster address and the cookie domain now use it.
This commit is contained in:
tim
2026-09-26 15:27:51 +02:00
parent 52f4855850
commit 5d657d7e45
11 changed files with 75 additions and 30 deletions
+3 -3
View File
@@ -261,9 +261,9 @@ function sanitise($story) {
function send_email($title, $author, $story) {
include_once('../lib/convert_entities.inc.php');
$to = 'editor@xxx.org.za';
$to = site_email('editor');
$subject = "New submission: $title";
$headers = 'From: x.x.x Queue <editor@xxx.org.za>'."\r\n";
$headers = 'From: x.x.x Queue <'.site_email('editor').'>'."\r\n";
$message = "Please review the queue. $author has sent the following new submission:\n\n";
if ($story) {
// Turn line and paragraph breaks into new lines before the tags are removed,
@@ -275,6 +275,6 @@ function send_email($title, $author, $story) {
}
else
$message .= "<Submission is an image. Review on the site.>";
$message .= "\n\nhttp://xxx.org.za/publish/edit";
$message .= "\n\n" . site_url() . "/publish/edit";
mb_send_mail($to, $subject, $message, $headers);
}