mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
commit
9152844152
@ -50,9 +50,9 @@ class EditableFileField extends EditableFormField {
|
||||
|
||||
public function getFormField() {
|
||||
if(isset(Config::inst()->get('EditableFileField', 'use_uploadfield')) && Config::inst()->get('EditableFileField', 'use_uploadfield')) {
|
||||
$field = Upload::create($this->Name, $this->EscapedTitle)
|
||||
$field = Upload::create($this->Name, $this->EscapedTitle);
|
||||
} else {
|
||||
$field = FileField::create($this->Name, $this->EscapedTitle)
|
||||
$field = FileField::create($this->Name, $this->EscapedTitle);
|
||||
}
|
||||
|
||||
$field->setFieldHolderTemplate('UserFormsField_holder')
|
||||
|
Loading…
x
Reference in New Issue
Block a user