Skip to content

Commit 9f0cc0b

Browse files
authored
Update resizeimage.snippet.php
1 parent 7b2e33b commit 9f0cc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resizeimage.snippet.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
$quality = $modx->getOption("quality", $scriptProperties, 70);
1111
$fileExtension = $modx->getOption("fileExtension", $scriptProperties, "webp");
1212
$setRatio = $modx->getOption("setRatio", $scriptProperties, true);
13+
$cachePath = $modx->getOption("cachePath", $scriptProperties, "assets/image-cache/");
1314
$cultureKey = $modx->getOption("cultureKey");
1415
$basePath = $modx->getOption("base_path");
1516
$filePath = preg_replace("/^\/?" . $cultureKey . "\//i", "", $input);
1617
$filePathLast = $filePath;
17-
$cachePath = $modx->getOption("cachePath", $scriptProperties, "assets/image-cache/");
1818
$srcsets = [];
1919
$src = [];
2020

0 commit comments

Comments
 (0)