From a39c8e25f476aa3c181dfe76bed944a0302f1351 Mon Sep 17 00:00:00 2001 From: Tim Moritz Date: Fri, 27 Dec 2024 09:13:02 +0100 Subject: [PATCH] fix absolute symlink for svg --- bl-kernel/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php index 6cc07a8d..95e5da45 100644 --- a/bl-kernel/functions.php +++ b/bl-kernel/functions.php @@ -933,7 +933,7 @@ function transformImage($file, $imageDir, $thumbnailDir = false) // Generate Thumbnail if (!empty($thumbnailDir)) { if (($fileExtension == 'svg')) { - Filesystem::symlink($image, $thumbnailDir . $nextFilename); + Filesystem::symlink('..'.DS.$nextFilename, $thumbnailDir . $nextFilename); } else { $Image = new Image(); $Image->setImage($image, $site->thumbnailWidth(), $site->thumbnailHeight(), 'crop');