Skip to content

Commit

Permalink
Update libraries/src/Form/Field/ImagelistField.php
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
  • Loading branch information
NicolasDerumigny and richard67 committed Feb 27, 2023
1 parent 3006797 commit 0c1b4d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libraries/src/Form/Field/ImagelistField.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ protected function getOptions()
$this->fileFilter =
'\.png$|\.gif$|\.jpg$|\.bmp$|\.ico$|\.jpeg$|\.psd$|\.eps$' .
join(
"|",
'|',
array_map(
function ($extension) {
return "\." . $extension . '$';
return '\.' . $extension . '$';
},
explode(
",",
ComponentHelper::getParams("com_media")->get(
"image_extensions",
"bmp,gif,jpg,jpeg,png,webp,avif"
',',
ComponentHelper::getParams('com_media')->get(
'image_extensions',
'bmp,gif,jpg,jpeg,png,webp,avif'
)
)
)
Expand Down

0 comments on commit 0c1b4d1

Please sign in to comment.