Skip to content

Commit

Permalink
Fixed extra comma issue in upload field accept attr
Browse files Browse the repository at this point in the history
  • Loading branch information
actuallyakash committed Jul 5, 2021
1 parent 82760a9 commit efafa81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/fields/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
$document->addStyleDeclaration($style);
?>
<div class="custom-file">
<input id="<?php echo $field->name; ?>-<?php echo $module->id; ?>" accept="<?php foreach ($allowable as $type) { echo ".".$type.","; } ?>" type="file" name="jdscf[<?php echo $field->name; ?>]" class="custom-file-input" <?php echo implode(' ', $attrs); ?>>
<input id="<?php echo $field->name; ?>-<?php echo $module->id; ?>" accept="<?php echo '.' . implode( ',.', $allowable ); ?>" type="file" name="jdscf[<?php echo $field->name; ?>]" class="custom-file-input" <?php echo implode(' ', $attrs); ?>>
<label class="custom-file-label" for="<?php echo $field->name; ?>-<?php echo $module->id; ?>"><?php echo JText::_('MOD_JDSCF_FILE_LBL'); ?></label>
</div>

Expand Down

0 comments on commit efafa81

Please sign in to comment.