From aaac90c531d9596f89b694eb4fac200ccf4cbe52 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 17 Apr 2008 10:27:27 +0000 Subject: [PATCH] API CHANGE Making all parameters to Email::__construct() optional (they all have public setters/getters, don't necessarily need to be set at instanciation time, as used in e.g. NewsletterAdmin) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52938 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/Email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Email.php b/core/Email.php index c2f70242a..a2f7ab068 100755 --- a/core/Email.php +++ b/core/Email.php @@ -49,7 +49,7 @@ class Email extends ViewableData { /** * Create a new email. */ - public function __construct($from, $to, $subject, $body = null, $bounceHandlerURL = null, $cc = null, $bcc=null ) { + public function __construct($from = null, $to = null, $subject = null, $body = null, $bounceHandlerURL = null, $cc = null, $bcc=null ) { $this->from = $from; $this->to = $to; $this->subject = $subject;