Permalink
Browse files

MINOR Fixed FormField::create() usage

  • Loading branch information...
1 parent 3ae0ac7 commit c2f7bf4dcf292ab03a09806438e8417a82d4700f @chillu chillu committed Apr 9, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 forms/HtmlEditorField.php
View
8 forms/HtmlEditorField.php
@@ -523,12 +523,12 @@ protected function getFieldsForImage($url, $file) {
);
$fields = new FieldList(
- $filePreview = FormField::create('CompositeField',
- FormField::create('CompositeField',
+ $filePreview = CompositeField::create(
+ CompositeField::create(
$previewField
)->setName("FilePreviewImage")->addExtraClass('cms-file-info-preview'),
- FormField::create('CompositeField',
- FormField::create('CompositeField',
+ CompositeField::create(
+ CompositeField::create(
new ReadonlyField("FileType", _t('AssetTableField.TYPE','File type') . ':', $file->FileType),
new ReadonlyField("Size", _t('AssetTableField.SIZE','File size') . ':', $file->getSize()),
$urlField = new ReadonlyField('ClickableURL', _t('AssetTableField.URL','URL'),

0 comments on commit c2f7bf4

Please sign in to comment.