diff --git a/core/model/modx/sources/modfilemediasource.class.php b/core/model/modx/sources/modfilemediasource.class.php index c36c5f111c6..a7c1e7b94b7 100644 --- a/core/model/modx/sources/modfilemediasource.class.php +++ b/core/model/modx/sources/modfilemediasource.class.php @@ -220,6 +220,8 @@ public function getContainerList($path) { if (in_array($ext, $imagesExts)) { + $modAuth = $this->xpdo->user->getUserToken($this->xpdo->context->get('key')); + $imageWidth = $this->ctx->getOption('filemanager_image_width', 400); $imageHeight = $this->ctx->getOption('filemanager_image_height', 300); $thumbnailType = $this->getOption('thumbnailType', $properties, 'png');