mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Fix(UserDefinedFormController) change return type of index() when not using shortcode
This commit is contained in:
parent
0a708d9ea3
commit
a3a2c3d286
@ -104,12 +104,12 @@ class UserDefinedFormController extends PageController
|
|||||||
* where the form should be rendered into. If it does not exist
|
* where the form should be rendered into. If it does not exist
|
||||||
* then default back to $Form.
|
* then default back to $Form.
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array|Object
|
||||||
*/
|
*/
|
||||||
public function index(HTTPRequest $request = null)
|
public function index(HTTPRequest $request = null)
|
||||||
{
|
{
|
||||||
if ($this->config()->disable_form_content_interpolation) {
|
if ($this->config()->disable_form_content_interpolation) {
|
||||||
return [];
|
return $this;
|
||||||
}
|
}
|
||||||
if ($this->Content && $form = $this->Form()) {
|
if ($this->Content && $form = $this->Form()) {
|
||||||
$hasLocation = stristr($this->Content, '$UserDefinedForm');
|
$hasLocation = stristr($this->Content, '$UserDefinedForm');
|
||||||
|
Loading…
Reference in New Issue
Block a user