1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-18 14:58:05 +02:00

Forced WebP caching fix.

This commit is contained in:
Cameron
2021-07-12 12:27:29 -07:00
parent c941e5b98d
commit bc1340af12

View File

@ -238,6 +238,7 @@ class e_thumbnail
$thumbnfo = $this->getImageInfo(); $thumbnfo = $this->getImageInfo();
$options = $this->getRequestOptions(); $options = $this->getRequestOptions();
$fname = e107::getParser()->thumbCacheFile($this->_src_path, $options); $fname = e107::getParser()->thumbCacheFile($this->_src_path, $options);
$cache_filename = e_CACHE_IMAGE . $fname; $cache_filename = e_CACHE_IMAGE . $fname;
@ -496,6 +497,10 @@ class e_thumbnail
{ {
$ret['type'] = $this->_request['type']; $ret['type'] = $this->_request['type'];
} }
elseif($this->_forceWebP)
{
$ret['type'] = 'webp';
}
return $ret; return $ret;
} }