speed: lowercase ext on image insert

avoids having to lowercase every build_thumb_html call
most extensions tend to match against their lowercase versions anyway
This commit is contained in:
Daku
2014-02-23 22:27:52 +00:00
parent cebc197fba
commit bdb3255116
2 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ class BaseThemelet {
$h_thumb_link = $image->get_thumb_link();
$h_tip = html_escape($image->get_tooltip());
$h_tags = strtolower($image->get_tag_list());
$ext = strtolower($image->ext);
$ext = $image->ext;
// If the file doesn't support thumbnail generation, show it at max size.
if($ext === 'swf' || $ext === 'svg' || $ext === 'mp4' || $ext === 'ogv' || $ext === 'webm' || $ext === 'flv'){