From a8ed557d99bb5b0332025b741518bc5866046179 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Thu, 19 Jul 2007 23:53:42 +0000 Subject: [PATCH] Use themed forms git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39038 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/Newsletter/Unsubscribe.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Newsletter/Unsubscribe.php b/code/Newsletter/Unsubscribe.php index d5ca329f..5538adb1 100755 --- a/code/Newsletter/Unsubscribe.php +++ b/code/Newsletter/Unsubscribe.php @@ -11,7 +11,7 @@ class Unsubscribe_Controller extends Page_Controller { function index() { Session::clear("loggedInAs"); - Requirements::css(project()."/css/form.css"); + Requirements::themedCSS("form"); // if the email address is given $emailAddress = addslashes( $this->urlParams['Email'] ); $mailingListID = addslashes( $this->urlParams['MailingList'] ); @@ -170,7 +170,7 @@ class Unsubscribe_Successful extends Form { parent::__construct($controller, $name, $fields, $actions); } 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"); } }