Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
robertSt7 authored and github-actions[bot] committed Jan 8, 2025
1 parent 0d2b48a commit 4132e38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controller/Admin/Asset/AssetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4132e38

Please sign in to comment.