Commit 035c9927 authored by 박관영's avatar 박관영

Modify media controller to use Imagy non-statically (Fix issue #477)

parent a96dec08
......@@ -53,7 +53,7 @@ class MediaController extends Controller
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>';
......
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