mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed inconsistency of using a global $project instead of global project() function in Email
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@73652 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
bd9778067c
commit
2f2910eac3
@ -374,8 +374,6 @@ class Email extends ViewableData {
|
|||||||
* Doesn't actually give any indication if the mail has been delivered to the recipient properly)
|
* Doesn't actually give any indication if the mail has been delivered to the recipient properly)
|
||||||
*/
|
*/
|
||||||
function sendPlain($messageID = null) {
|
function sendPlain($messageID = null) {
|
||||||
global $project;
|
|
||||||
|
|
||||||
Requirements::clear();
|
Requirements::clear();
|
||||||
|
|
||||||
$this->parseVariables(true);
|
$this->parseVariables(true);
|
||||||
@ -386,9 +384,9 @@ class Email extends ViewableData {
|
|||||||
|
|
||||||
$headers['X-SilverStripeBounceURL'] = $this->bounceHandlerURL;
|
$headers['X-SilverStripeBounceURL'] = $this->bounceHandlerURL;
|
||||||
|
|
||||||
if($messageID) $headers['X-SilverStripeMessageID'] = $project . '.' . $messageID;
|
if($messageID) $headers['X-SilverStripeMessageID'] = project() . '.' . $messageID;
|
||||||
|
|
||||||
if($project) $headers['X-SilverStripeSite'] = $project;
|
if(project()) $headers['X-SilverStripeSite'] = project();
|
||||||
|
|
||||||
$to = $this->to;
|
$to = $this->to;
|
||||||
$subject = $this->subject;
|
$subject = $this->subject;
|
||||||
|
Loading…
Reference in New Issue
Block a user