Merge remote branch 'origin/master' into translation-staging

This commit is contained in:
TeamCity 2012-11-03 10:15:48 +13:00
commit f0db5267d3

View File

@ -74,20 +74,13 @@ class CMSFileAddController extends LeftAndMain {
$exts = $uploadField->getValidator()->getAllowedExtensions(); $exts = $uploadField->getValidator()->getAllowedExtensions();
asort($exts); asort($exts);
$uploadField->Extensions = implode(', ', $exts);
$form = new Form( $form = new Form(
$this, $this,
'getEditForm', 'getEditForm',
new FieldList( new FieldList(
$uploadField, $uploadField,
new LiteralField(
'AllowedExtensions',
sprintf(
'<p>%s: %s</p>',
_t('AssetAdmin.ALLOWEDEXTS', 'Allowed extensions'),
implode('<em>, </em>', $exts)
)
),
new HiddenField('ID') new HiddenField('ID')
), ),
new FieldList() new FieldList()