mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
9612475abf
commit
aaac90c531
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user