Use default options when generating thumbnails for private files (#4353)

Fixes #4351. Credit to @w20k @redmarlin.
This commit is contained in:
Denis Denisov 2019-06-12 09:15:19 +03:00 committed by Luke Towers
parent 19846037f8
commit 882f317cd8
1 changed files with 1 additions and 0 deletions

View File

@ -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);