Fix image scale on thumbnail save

This commit is contained in:
Max Kostikov 2019-04-10 14:44:50 +02:00
parent e96fa64625
commit 85be906b68

View File

@ -504,10 +504,11 @@ abstract class PhotoDriver {
*/
public function storeThumbnail($arr, $scale = 0) {
$arr['imgscale'] = $scale;
if(boolval(get_config('system','filesystem_storage_thumbnails', 0)) && $scale > 0) {
$channel = \App::get_channel();
$arr['os_storage'] = 1;
$arr['imgscale'] = $scale;
$arr['os_syspath'] = 'store/' . $channel['channel_address'] . '/' . $arr['os_path'] . '-' . $scale;
if(! $this->saveImage($arr['os_syspath']))
return false;