diff --git a/themes/danbooru/themelet.class.php b/themes/danbooru/themelet.class.php index 7cd8631c..a848352b 100644 --- a/themes/danbooru/themelet.class.php +++ b/themes/danbooru/themelet.class.php @@ -20,8 +20,8 @@ class Themelet { $h_view_link = make_link("post/view/{$image->id}", $query); $h_tip = html_escape($image->get_tooltip()); $h_thumb_link = $image->get_thumb_link(); - if($image->ext == 'swf'){ - $tsize = get_thumbnail_size(192, 192); } + if($image->ext == 'swf' || 'svg'){ + $tsize = get_thumbnail_size('thumb_width', 'thumb_height'); } else{ $tsize = get_thumbnail_size($image->width, $image->height); } return "$h_tipget_tooltip()); $h_thumb_link = $image->get_thumb_link(); - if($image->ext == 'swf'){ - $tsize = get_thumbnail_size(192, 192); } + if($image->ext == 'swf' || 'svg'){ + $tsize = get_thumbnail_size('thumb_width', 'thumb_height'); } else{ $tsize = get_thumbnail_size($image->width, $image->height); } return " diff --git a/themes/flat/themelet.class.php b/themes/flat/themelet.class.php index 5376e6fc..1724f329 100644 --- a/themes/flat/themelet.class.php +++ b/themes/flat/themelet.class.php @@ -33,8 +33,8 @@ class Themelet { $h_view_link = make_link("post/view/$i_id", $query); $h_tip = html_escape($image->get_tooltip()); $h_thumb_link = $image->get_thumb_link(); - if($image->ext == 'swf'){ - $tsize = get_thumbnail_size(192, 192); } + if($image->ext == 'swf' || 'svg'){ + $tsize = get_thumbnail_size('thumb_width', 'thumb_height'); } else{ $tsize = get_thumbnail_size($image->width, $image->height); } return " diff --git a/themes/futaba/themelet.class.php b/themes/futaba/themelet.class.php index c5a902cf..5985f2e2 100644 --- a/themes/futaba/themelet.class.php +++ b/themes/futaba/themelet.class.php @@ -21,8 +21,8 @@ class Themelet { $h_view_link = make_link("post/view/{$image->id}", $query); $h_tip = html_escape($image->get_tooltip()); $h_thumb_link = $image->get_thumb_link(); - if($image->ext == 'swf'){ - $tsize = get_thumbnail_size(192, 192); } + if($image->ext == 'swf' || 'svg'){ + $tsize = get_thumbnail_size('thumb_width', 'thumb_height'); } else{ $tsize = get_thumbnail_size($image->width, $image->height); } return "$h_tipget_tooltip()); $h_thumb_link = $image->get_thumb_link(); - if($image->ext == 'swf'){ - $tsize = get_thumbnail_size(192, 192); } + if($image->ext == 'swf' || 'svg'){ + $tsize = get_thumbnail_size('thumb_width', 'thumb_height'); } else{ $tsize = get_thumbnail_size($image->width, $image->height); } return " diff --git a/themes/old_default/themelet.class.php b/themes/old_default/themelet.class.php index 5b25a843..e7ed8967 100644 --- a/themes/old_default/themelet.class.php +++ b/themes/old_default/themelet.class.php @@ -31,8 +31,8 @@ class Themelet { $h_view_link = make_link("post/view/$i_id", $query); $h_tip = html_escape($image->get_tooltip()); $h_thumb_link = $image->get_thumb_link(); - if($image->ext == 'swf'){ - $tsize = get_thumbnail_size(192, 192); } + if($image->ext == 'swf' || 'svg'){ + $tsize = get_thumbnail_size('thumb_width', 'thumb_height'); } else{ $tsize = get_thumbnail_size($image->width, $image->height); } return "$h_tipget_tooltip()); $h_image_link = $image->get_image_link(); $h_thumb_link = $image->get_thumb_link(); - if($image->ext == 'swf'){ - $tsize = get_thumbnail_size(192, 192); } + if($image->ext == 'swf' || 'svg'){ + $tsize = get_thumbnail_size('thumb_width', 'thumb_height'); } else{ $tsize = get_thumbnail_size($image->width, $image->height); } return "