Removed unncessary renderWith

This commit is contained in:
Sean Harvey 2008-10-30 03:59:18 +00:00
parent 45399682d4
commit b57bc7e58c

View File

@ -397,17 +397,16 @@ class UserDefinedForm_Controller extends Page_Controller {
} }
/** /**
* This action handles rendering the "finished" message * This action handles rendering the "finished" message,
* editable in the CMS for a User Defined Form page type. * which is customisable by editing the ReceivedFormSubmission.ss
* It should be redirected to after the user submits the * template.
* User Defined Form on the front end of the site.
* *
* @return ViewableData * @return ViewableData
*/ */
function finished() { function finished() {
$referrer = isset($_GET['referrer']) ? urldecode($_GET['referrer']) : null; $referrer = isset($_GET['referrer']) ? urldecode($_GET['referrer']) : null;
$custom = $this->customise(array( $templateData = $this->customise(array(
'Content' => $this->customise( 'Content' => $this->customise(
array( array(
'Link' => $referrer 'Link' => $referrer
@ -415,7 +414,7 @@ class UserDefinedForm_Controller extends Page_Controller {
'Form' => ' ', 'Form' => ' ',
)); ));
return $custom->renderWith('Page'); return $templateData;
} }
} }