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