Use default options when generating thumbnails for private files (#4353)
Fixes #4351. Credit to @w20k @redmarlin.
This commit is contained in:
parent
19846037f8
commit
882f317cd8
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue