Skip to content

Commit

Permalink
Complément #280
Browse files Browse the repository at this point in the history
  • Loading branch information
haruka-7 committed May 8, 2019
1 parent fb5f458 commit db60431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/class.plx.medias.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public function makeThumbs($files, $width, $height) {
if(is_file($this->path.$this->dir.$file)) {
$thumName = plxUtils::thumbName($file);
$ext = strtolower(strrchr($this->path.$this->dir.$file,'.'));
if(in_array($ext, array('.gif', '.jpg', '.jpeg', '.png', '.webp'))) {
if(in_array($ext, $this->img_supported)) {
if(plxUtils::makeThumb($this->path.$this->dir.$file, $this->path.$this->dir.$thumName, $width, $height, 80))
$count++;
}
Expand Down

0 comments on commit db60431

Please sign in to comment.