Browse files

Merge pull request #223 from adrexia/7883-File-Uploading-Notifications

BUG: File Uploading Notifications (fixes #7883)
  • Loading branch information...
2 parents f9e32f5 + d61f16d commit 600c73086b5ec18c87a90a3d129ee59431be7531 @chillu chillu committed Nov 2, 2012
Showing with 2 additions and 9 deletions.
  1. +2 −9 code/controllers/CMSFileAddController.php
View
11 code/controllers/CMSFileAddController.php
@@ -74,20 +74,13 @@ public function getEditForm($id = null, $fields = null) {
$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)
- )
- ),
+ $uploadField,
new HiddenField('ID')
),
new FieldList()

0 comments on commit 600c730

Please sign in to comment.