From 882f317cd8b7ed3545ce6dcace684d4a0f6f92f1 Mon Sep 17 00:00:00 2001 From: Denis Denisov Date: Wed, 12 Jun 2019 09:15:19 +0300 Subject: [PATCH] Use default options when generating thumbnails for private files (#4353) Fixes #4351. Credit to @w20k @redmarlin. --- modules/system/models/File.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/system/models/File.php b/modules/system/models/File.php index 5b01a8f96..ffca84afb 100644 --- a/modules/system/models/File.php +++ b/modules/system/models/File.php @@ -27,6 +27,7 @@ class File extends FileBase { $url = ''; if (!$this->isPublic() && class_exists(Files::class)) { + $options = $this->getDefaultThumbOptions($options); // Ensure that the thumb exists first parent::getThumb($width, $height, $options);