Skip to content

Commit

Permalink
Merge pull request #478 from darron1217/issue#477
Browse files Browse the repository at this point in the history
Modify media controller to use Imagy non-statically (Fix issue #477)
  • Loading branch information
nWidart authored Feb 26, 2018
2 parents e182071 + 035c992 commit 328d618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Media/Http/Controllers/Api/MediaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function all()
return '<i class="fa fa-folder" style="font-size: 20px;"></i>';
}
if ($file->isImage()) {
return '<img src="' . Imagy::getThumbnail($file->path, 'smallThumb') . '"/>';
return '<img src="' . $this->imagy->getThumbnail($file->path, 'smallThumb') . '"/>';
}

return '<i class="fa ' . FileHelper::getFaIcon($file->media_type) . '" style="font-size: 20px;"></i>';
Expand Down

0 comments on commit 328d618

Please sign in to comment.