Skip to content

Commit 328d618

Browse files
authored
Merge pull request #478 from darron1217/issue#477
Modify media controller to use Imagy non-statically (Fix issue #477)
2 parents e182071 + 035c992 commit 328d618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Modules/Media/Http/Controllers/Api/MediaController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function all()
5353
return '<i class="fa fa-folder" style="font-size: 20px;"></i>';
5454
}
5555
if ($file->isImage()) {
56-
return '<img src="' . Imagy::getThumbnail($file->path, 'smallThumb') . '"/>';
56+
return '<img src="' . $this->imagy->getThumbnail($file->path, 'smallThumb') . '"/>';
5757
}
5858

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

0 commit comments

Comments
 (0)