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:
parent
e6e65a9459
commit
6a9c127719
1 changed files with 1 additions and 8 deletions
|
@ -51,14 +51,7 @@ class RegenThumb extends Extension {
|
||||||
$page->set_title("Thumbnail Regenerated");
|
$page->set_title("Thumbnail Regenerated");
|
||||||
$page->set_heading("Thumbnail Regenerated");
|
$page->set_heading("Thumbnail Regenerated");
|
||||||
$page->add_side_block(new NavBlock());
|
$page->add_side_block(new NavBlock());
|
||||||
$page->add_main_block(new Block("Thumbnail", $this->build_thumb_html($image)));
|
$page->add_main_block(new Block("Thumbnail", 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function check_filename($filename) {
|
private function check_filename($filename) {
|
||||||
|
|
Reference in a new issue