This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/contrib/handle_ico/theme.php
shish 7edf906065 manually set the mime type when serving .ico files
git-svn-id: file:///home/shish/svn/shimmie2/trunk@817 7f39781d-f577-437e-ae19-be835c7a54ca
2008-04-14 10:50:46 +00:00

12 lines
284 B
PHP

<?php
class IcoFileHandlerTheme extends Themelet {
public function display_image($page, $image) {
$ilink = make_link("get_ico/{$image->id}/{$image->id}.ico");
$html = "
<img id='main_image' src='$ilink'>
";
$page->add_block(new Block("Image", $html, "main", 0));
}
}
?>