Use Image->get_image_link() on ICO files

This commit is contained in:
im-mi 2016-09-25 15:25:12 -04:00
parent 1dd0dfc591
commit 05da5d0b4f

View file

@ -2,7 +2,7 @@
class IcoFileHandlerTheme extends Themelet {
public function display_image(Page $page, Image $image) {
$ilink = make_link("get_ico/{$image->id}/{$image->id}.ico");
$ilink = $image->get_image_link();
$html = "
<img id='main_image' src='$ilink'>
";