mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 43342 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.1.0-rc3oriwave2 ........ r43342 | hsmith | 2007-10-12 13:57:25 +1300 (Fri, 12 Oct 2007) | 1 line Used Object::create() to create email instances sent by the system. ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49783 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a70743070d
commit
0cce4a1d4a
@ -226,13 +226,13 @@ class Member extends DataObject {
|
||||
function sendInfo($type = 'signup', $data = null) {
|
||||
switch($type) {
|
||||
case "signup":
|
||||
$e = new Member_SignupEmail();
|
||||
$e = Object::create('Member_SignupEmail');
|
||||
break;
|
||||
case "changePassword":
|
||||
$e = new Member_ChangePasswordEmail();
|
||||
$e = Object::create('Member_ChangePasswordEmail');
|
||||
break;
|
||||
case "forgotPassword":
|
||||
$e = new Member_ForgotPasswordEmail();
|
||||
$e = Object::create('Member_ForgotPasswordEmail');
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1163,10 +1163,6 @@ class Member_ChangePasswordEmail extends Email_Template {
|
||||
function __construct() {
|
||||
$this->subject = _t('Member.SUBJECTPASSWORDCHANGED', "Your password has been changed", PR_MEDIUM, 'Email subject');
|
||||
}
|
||||
|
||||
function BaseHref() {
|
||||
return 'http://'.(($subsite = Subsite::currentSubsite()) ? $subsite->domain() : Subsite::default_domain()).'/';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user