Use themed forms

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39038 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-07-19 23:53:42 +00:00
parent d53ea72c34
commit a8ed557d99

View File

@ -11,7 +11,7 @@ class Unsubscribe_Controller extends Page_Controller {
function index() { function index() {
Session::clear("loggedInAs"); Session::clear("loggedInAs");
Requirements::css(project()."/css/form.css"); Requirements::themedCSS("form");
// if the email address is given // if the email address is given
$emailAddress = addslashes( $this->urlParams['Email'] ); $emailAddress = addslashes( $this->urlParams['Email'] );
$mailingListID = addslashes( $this->urlParams['MailingList'] ); $mailingListID = addslashes( $this->urlParams['MailingList'] );
@ -170,7 +170,7 @@ class Unsubscribe_Successful extends Form {
parent::__construct($controller, $name, $fields, $actions); parent::__construct($controller, $name, $fields, $actions);
} }
function setSuccessfulMessage($email, $newsletterTypes) { function setSuccessfulMessage($email, $newsletterTypes) {
Requirements::css(project() . "/css/form.css"); Requirements::themedCSS("form");
$this->setMessage("Thank you. $email will no longer receive the $newsletterTypes.", "good"); $this->setMessage("Thank you. $email will no longer receive the $newsletterTypes.", "good");
} }
} }