diff --git a/core/util.inc.php b/core/util.inc.php
index 605f3a7d..1e231149 100644
--- a/core/util.inc.php
+++ b/core/util.inc.php
@@ -112,16 +112,6 @@ function make_link($page=null, $query=null) {
}
}
-function build_thumb_html($image, $query=null) {
- global $config;
- $h_view_link = make_link("post/view/{$image->id}", $query);
- $h_tip = html_escape($image->get_tooltip());
- $h_thumb_link = $image->get_thumb_link();
- $tsize = get_thumbnail_size($image->width, $image->height);
- return "";
-}
-
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* Misc *
diff --git a/ext/comment/theme.php b/ext/comment/theme.php
index d91a0276..6a518510 100644
--- a/ext/comment/theme.php
+++ b/ext/comment/theme.php
@@ -56,7 +56,7 @@ class CommentListTheme extends Themelet {
*/
public function add_comment_list($page, $image, $comments, $position, $with_postbox) {
$html = "
".build_thumb_html($existing); + "already has hash {$image->hash}:
".Themelet::build_thumb_html($existing); return $error; } diff --git a/ext/index/theme.php b/ext/index/theme.php index aee24a6d..997c6b26 100644 --- a/ext/index/theme.php +++ b/ext/index/theme.php @@ -83,7 +83,7 @@ class IndexTheme extends Themelet { for($j=0; $j<$width; $j++) { $image = isset($images[$i*$width+$j]) ? $images[$i*$width+$j] : null; if(!is_null($image)) { - $table .= "\t
" . build_thumb_html($image) . "
" . + "" . Themelet::build_thumb_html($image) . "
" . "Uploaded by " . $owner->name . "
" ); diff --git a/themes/danbooru/comment.theme.php b/themes/danbooru/comment.theme.php index 67e2a89a..d97afc97 100644 --- a/themes/danbooru/comment.theme.php +++ b/themes/danbooru/comment.theme.php @@ -67,7 +67,7 @@ class CustomCommentListTheme extends CommentListTheme { $count = count($comments); $html = "