Merged revisions 49732 via svnmerge from

svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.1.0-rc3oriwave2

........
  r49732 | sminnee | 2008-02-19 10:27:49 +1300 (Tue, 19 Feb 2008) | 1 line
  
  Updated subject line of warning/error emails
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49798 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-02-19 00:49:57 +00:00
parent 8eb13d5128
commit 49db7da7c6

View File

@ -184,7 +184,10 @@ class Debug {
if(self::$custom_smtp_server) {
ini_set("SMTP", self::$custom_smtp_server);
}
mail($emailAddress, "$errorType on $_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]", $data, "Content-type: text/html\nFrom: errors@silverstripe.com");
$relfile = Director::makeRelative($errfile);
if($relfile[0] == '/') $relfile = substr($relfile,1);
mail($emailAddress, "$errorType at $relfile line $errline (http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI])", $data, "Content-type: text/html\nFrom: errors@silverstripe.com");
}
/**