Merge pull request #1 from gaincoder/gaincoder-patch-1
fix absolute symlink for svg
This commit is contained in:
commit
1d96daa405
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue