mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Removed unncessary renderWith
This commit is contained in:
parent
45399682d4
commit
b57bc7e58c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user