Restore requirements after sending email

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67583 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-12-07 21:35:03 +00:00 committed by Sam Minnee
parent 17a55042ca
commit 55c427ad29
6 changed files with 8 additions and 6 deletions

View File

@ -384,6 +384,8 @@ class Email extends ViewableData {
if(trim($headers['Bcc'])) $headers['Bcc'] .= ', ';
$headers['Bcc'] .= self::$bcc_all_emails_to;
}
Requirements::restore();
return self::mailer()->sendPlain($to, $this->from, $subject, $this->body, $this->attachments, $headers);
}
@ -748,4 +750,4 @@ class Email_BlackList extends DataObject{
}
}
?>
?>

View File

@ -398,4 +398,4 @@ class Geoip extends Object {
}
}
?>
?>

View File

@ -317,4 +317,4 @@ class Group extends DataObject {
}
}
?>
?>

View File

@ -1432,4 +1432,4 @@ class Member_Validator extends RequiredFields {
// algorithms to the PasswordEncryption Enum field
Member::init_db_fields();
?>
?>

View File

@ -227,4 +227,4 @@ class MemberLoginForm extends LoginForm {
}
?>
?>

View File

@ -980,4 +980,4 @@ class Security extends Controller {
}
?>
?>