mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge remote branch 'origin/master' into translation-staging
This commit is contained in:
commit
f0db5267d3
@ -74,20 +74,13 @@ class CMSFileAddController extends LeftAndMain {
|
||||
|
||||
$exts = $uploadField->getValidator()->getAllowedExtensions();
|
||||
asort($exts);
|
||||
$uploadField->Extensions = implode(', ', $exts);
|
||||
|
||||
$form = new Form(
|
||||
$this,
|
||||
'getEditForm',
|
||||
new FieldList(
|
||||
$uploadField,
|
||||
new LiteralField(
|
||||
'AllowedExtensions',
|
||||
sprintf(
|
||||
'<p>%s: %s</p>',
|
||||
_t('AssetAdmin.ALLOWEDEXTS', 'Allowed extensions'),
|
||||
implode('<em>, </em>', $exts)
|
||||
)
|
||||
),
|
||||
new HiddenField('ID')
|
||||
),
|
||||
new FieldList()
|
||||
|
Loading…
Reference in New Issue
Block a user