From 4132e3850b8882e198d93346450f0f1f9d611453 Mon Sep 17 00:00:00 2001 From: robertSt7 Date: Wed, 8 Jan 2025 09:52:30 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- src/Controller/Admin/Asset/AssetController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Controller/Admin/Asset/AssetController.php b/src/Controller/Admin/Asset/AssetController.php index 3c6181a4c..89d0a021e 100644 --- a/src/Controller/Admin/Asset/AssetController.php +++ b/src/Controller/Admin/Asset/AssetController.php @@ -953,6 +953,7 @@ public function showVersionAction(Request $request, Environment $twig): Response if ($asset instanceof Asset\Document && $asset->getMimeType() === self::PDF_MIMETYPE) { $previewData = ['thumbnailPath' => '']; $previewData['assetPath'] = $asset->getRealFullPath(); + return $this->render( '@PimcoreAdmin/admin/asset/get_preview_pdf_open_in_new_tab.html.twig', $previewData @@ -1460,6 +1461,7 @@ public function getPreviewDocumentAction( $thumbnail = $asset->getImageThumbnail(Asset\Image\Thumbnail\Config::getPreviewConfig()); $previewData = ['thumbnailPath' => $thumbnail->getPath()]; $previewData['assetPath'] = $asset->getRealFullPath(); + return $this->render( '@PimcoreAdmin/admin/asset/get_preview_pdf_open_in_new_tab.html.twig', $previewData