Update static thumb + bug fix
Add videos to static thumb and make Shimmie compare lowercase extensions.
This commit is contained in:
parent
412dcd05af
commit
fcdf784acc
@ -45,9 +45,10 @@ class BaseThemelet {
|
|||||||
$h_tip = html_escape($image->get_tooltip());
|
$h_tip = html_escape($image->get_tooltip());
|
||||||
$h_tags = strtolower($image->get_tag_list());
|
$h_tags = strtolower($image->get_tag_list());
|
||||||
$base = get_base_href();
|
$base = get_base_href();
|
||||||
|
$ext = strtolower($image->ext);
|
||||||
|
|
||||||
// If file is flash or svg then sets thumbnail to max size.
|
// If the file doesn't support thumbnail generation, show it at max size.
|
||||||
if($image->ext === 'swf' || $image->ext === 'svg'){
|
if($ext === 'swf' || $ext === 'svg' || $ext === 'mp4' || $ext === 'ogv' || $ext === 'webm' || $ext === 'flv'){
|
||||||
$tsize = get_thumbnail_size($config->get_int('thumb_width'), $config->get_int('thumb_height'));
|
$tsize = get_thumbnail_size($config->get_int('thumb_width'), $config->get_int('thumb_height'));
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user