Merge pull request #317 from scott1702/master

add warning about publicly accessible files
This commit is contained in:
Damian Mooyman 2015-08-27 18:52:27 +12:00
commit 5288c4d441
2 changed files with 6 additions and 1 deletions

View File

@ -31,6 +31,11 @@ class EditableFileField extends EditableFormField {
)
);
$fields->addFieldToTab("Root.Main", new LiteralField("FileUploadWarning",
"<p class=\"message notice\">" . _t("UserDefinedForm.FileUploadWarning",
"Files uploaded through this field could be publicly accessible if the exact URL is known")
. "</p>"), "Type");
return $fields;
}

View File

@ -193,7 +193,7 @@ class EditableFormField extends DataObject {
$fields->addFieldToTab('Root.Main',
TextField::create(
'ExtraClass',
_t('EditableFormField.EXTRACLASS_Title', 'Extra CSS Classes')
_t('EditableFormField.EXTRACLASS_Title', 'Extra CSS classes')
)->setDescription(_t(
'EditableFormField.EXTRACLASS_MULTIPLE',
'Separate each CSS class with a single space'