aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-04-10 14:44:50 +0200
committerMax Kostikov <max@kostikov.co>2019-04-10 14:44:50 +0200
commit85be906b687873b436447f1acd2411528e3f4229 (patch)
treed308af2b6ab8a8a257b2c1a70beccc017ebed735
parente96fa64625447aed6c2ee83f8bb53007a3b8f8ec (diff)
downloadvolse-hubzilla-85be906b687873b436447f1acd2411528e3f4229.tar.gz
volse-hubzilla-85be906b687873b436447f1acd2411528e3f4229.tar.bz2
volse-hubzilla-85be906b687873b436447f1acd2411528e3f4229.zip
Fix image scale on thumbnail save
-rw-r--r--Zotlabs/Photo/PhotoDriver.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Photo/PhotoDriver.php b/Zotlabs/Photo/PhotoDriver.php
index 4c7da92cf..75117c341 100644
--- a/Zotlabs/Photo/PhotoDriver.php
+++ b/Zotlabs/Photo/PhotoDriver.php
@@ -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;