regen thumb uses common build_thumb_html

git-svn-id: file:///home/shish/svn/shimmie2/trunk@32 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-04-28 19:29:59 +00:00
parent e6e65a9459
commit 6a9c127719

View file

@ -51,14 +51,7 @@ class RegenThumb extends Extension {
$page->set_title("Thumbnail Regenerated");
$page->set_heading("Thumbnail Regenerated");
$page->add_side_block(new NavBlock());
$page->add_main_block(new Block("Thumbnail", $this->build_thumb_html($image)));
}
private function build_thumb_html($image) {
$link = make_link("post/view/".$image->id);
$img = $image->get_thumb_link();
$html = "<a href='$link'><img src='$img'></a>";
return $html;
$page->add_main_block(new Block("Thumbnail", build_thumb_html($image)));
}
private function check_filename($filename) {