1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-15 11:51:30 +02:00

Forced WebP caching fix.

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

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