Skip to content

Commit

Permalink
Update resizeimage.snippet.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jenswittmann committed Nov 21, 2023
1 parent 7b2e33b commit 9f0cc0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resizeimage.snippet.php
Expand Up @@ -10,11 +10,11 @@
$quality = $modx->getOption("quality", $scriptProperties, 70);
$fileExtension = $modx->getOption("fileExtension", $scriptProperties, "webp");
$setRatio = $modx->getOption("setRatio", $scriptProperties, true);
$cachePath = $modx->getOption("cachePath", $scriptProperties, "assets/image-cache/");
$cultureKey = $modx->getOption("cultureKey");
$basePath = $modx->getOption("base_path");
$filePath = preg_replace("/^\/?" . $cultureKey . "\//i", "", $input);
$filePathLast = $filePath;
$cachePath = $modx->getOption("cachePath", $scriptProperties, "assets/image-cache/");
$srcsets = [];
$src = [];

Expand Down

0 comments on commit 9f0cc0b

Please sign in to comment.