Unverified Commit 328d618c authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Merge pull request #478 from darron1217/issue#477

Modify media controller to use Imagy non-statically (Fix issue #477)
parents e1820718 035c9927
...@@ -53,7 +53,7 @@ class MediaController extends Controller ...@@ -53,7 +53,7 @@ class MediaController extends Controller
return '<i class="fa fa-folder" style="font-size: 20px;"></i>'; return '<i class="fa fa-folder" style="font-size: 20px;"></i>';
} }
if ($file->isImage()) { 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>'; return '<i class="fa ' . FileHelper::getFaIcon($file->media_type) . '" style="font-size: 20px;"></i>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment