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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user