From 6a9c127719c58bd8bdf04416ea740f82cd75e69c Mon Sep 17 00:00:00 2001 From: shish Date: Sat, 28 Apr 2007 19:29:59 +0000 Subject: [PATCH] regen thumb uses common build_thumb_html git-svn-id: file:///home/shish/svn/shimmie2/trunk@32 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/regen_thumb.ext.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ext/regen_thumb.ext.php b/ext/regen_thumb.ext.php index 58118672..a47ca4ef 100644 --- a/ext/regen_thumb.ext.php +++ b/ext/regen_thumb.ext.php @@ -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 = ""; - return $html; + $page->add_main_block(new Block("Thumbnail", build_thumb_html($image))); } private function check_filename($filename) {