|
@@ -148,7 +148,7 @@ |
|
|
block discarded – undo |
|
148
|
148
|
public function mediaFileResponse(MediaFile $media_file, bool $add_watermark, bool $download): ResponseInterface |
|
149
|
149
|
{ |
|
150
|
150
|
$filesystem = Registry::filesystem()->media($media_file->media()->tree()); |
|
151
|
|
- $path = $media_file->filename(); |
|
|
151
|
+ $path = $media_file->filename(); |
|
152
|
152
|
|
|
153
|
153
|
if (!$add_watermark || !$media_file->isImage()) { |
|
154
|
154
|
return $this->fileResponse($filesystem, $path, $download); |
Please login to merge, or discard this patch.