Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Dec 7, 2020
1 parent 06f57ee commit b346f65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core-bundle/src/Resources/contao/dca/tl_files.php
Expand Up @@ -233,7 +233,7 @@
'title' => 'maxlength="255"',
'alt' => 'maxlength="255"',
'link' => array('attributes'=>'maxlength="255"', 'dcaPicker'=>true),
'caption' => array('type' => 'textarea')
'caption' => array('type'=>'textarea')
)
),
'sql' => "blob NULL"
Expand Down
7 changes: 5 additions & 2 deletions core-bundle/src/Resources/contao/widgets/MetaWizard.php
Expand Up @@ -146,9 +146,12 @@ public function generate()
{
$return .= '<label for="ctrl_' . $this->strId . '_' . $field . '_' . $count . '">' . $GLOBALS['TL_LANG']['MSC']['aw_' . $field] . '</label>';

if (isset($fieldConfig['type']) && 'textarea' === $fieldConfig['type']) {
if (isset($fieldConfig['type']) && 'textarea' === $fieldConfig['type'])
{
$return .= '<textarea name="' . $this->strId . '[' . $lang . '][' . $field . ']" id="ctrl_' . $this->strId . '_' . $field . '_' . $count . '" class="tl_textarea"' . (!empty($fieldConfig['attributes']) ? ' ' . $fieldConfig['attributes'] : '') . '>' . $meta[$field] . '</textarea>';
} else {
}
else
{
$return .= '<input type="text" name="' . $this->strId . '[' . $lang . '][' . $field . ']" id="ctrl_' . $this->strId . '_' . $field . '_' . $count . '" class="tl_text" value="' . StringUtil::specialchars($meta[$field]) . '"' . (!empty($fieldConfig['attributes']) ? ' ' . $fieldConfig['attributes'] : '') . '>';
}

Expand Down

0 comments on commit b346f65

Please sign in to comment.