Skip to content

Commit b346f65

Browse files
committed
CS
1 parent 06f57ee commit b346f65

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

core-bundle/src/Resources/contao/dca/tl_files.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
'title' => 'maxlength="255"',
234234
'alt' => 'maxlength="255"',
235235
'link' => array('attributes'=>'maxlength="255"', 'dcaPicker'=>true),
236-
'caption' => array('type' => 'textarea')
236+
'caption' => array('type'=>'textarea')
237237
)
238238
),
239239
'sql' => "blob NULL"

core-bundle/src/Resources/contao/widgets/MetaWizard.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,12 @@ public function generate()
146146
{
147147
$return .= '<label for="ctrl_' . $this->strId . '_' . $field . '_' . $count . '">' . $GLOBALS['TL_LANG']['MSC']['aw_' . $field] . '</label>';
148148

149-
if (isset($fieldConfig['type']) && 'textarea' === $fieldConfig['type']) {
149+
if (isset($fieldConfig['type']) && 'textarea' === $fieldConfig['type'])
150+
{
150151
$return .= '<textarea name="' . $this->strId . '[' . $lang . '][' . $field . ']" id="ctrl_' . $this->strId . '_' . $field . '_' . $count . '" class="tl_textarea"' . (!empty($fieldConfig['attributes']) ? ' ' . $fieldConfig['attributes'] : '') . '>' . $meta[$field] . '</textarea>';
151-
} else {
152+
}
153+
else
154+
{
152155
$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'] : '') . '>';
153156
}
154157

0 commit comments

Comments
 (0)