From a70743070d887f7d2772749da125fb081eb82068 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 19 Feb 2008 00:29:55 +0000 Subject: [PATCH] Merged revisions 43340 via svnmerge from svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.1.0-rc3oriwave2 ........ r43340 | hsmith | 2007-10-12 13:35:23 +1300 (Fri, 12 Oct 2007) | 1 line Added BaseHref() to Member_ChangePasswordEmail so that the email shows the domain name of the current subsite. ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49781 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Member.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/security/Member.php b/security/Member.php index c3c900c51..bec9b8b88 100644 --- a/security/Member.php +++ b/security/Member.php @@ -1163,6 +1163,10 @@ 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()).'/'; + } }