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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user