Skip to content
This repository
Browse code

MINOR Fixed FormField::create() usage

  • Loading branch information...
commit c2f7bf4dcf292ab03a09806438e8417a82d4700f 1 parent 3ae0ac7
Ingo Schommer authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  forms/HtmlEditorField.php
8  forms/HtmlEditorField.php
@@ -523,12 +523,12 @@ protected function getFieldsForImage($url, $file) {
523 523
 		);
524 524
 
525 525
 		$fields = new FieldList(
526  
-			$filePreview = FormField::create('CompositeField', 
527  
-				FormField::create('CompositeField',
  526
+			$filePreview = CompositeField::create(
  527
+				CompositeField::create(
528 528
 					$previewField
529 529
 				)->setName("FilePreviewImage")->addExtraClass('cms-file-info-preview'),
530  
-				FormField::create('CompositeField',
531  
-					FormField::create('CompositeField', 
  530
+				CompositeField::create(
  531
+					CompositeField::create(
532 532
 						new ReadonlyField("FileType", _t('AssetTableField.TYPE','File type') . ':', $file->FileType),
533 533
 						new ReadonlyField("Size", _t('AssetTableField.SIZE','File size') . ':', $file->getSize()),
534 534
 						$urlField = new ReadonlyField('ClickableURL', _t('AssetTableField.URL','URL'),

0 notes on commit c2f7bf4

Please sign in to comment.
Something went wrong with that request. Please try again.