Skip to content

Commit

Permalink
Fix #1427
Browse files Browse the repository at this point in the history
`\craft\helpers\Assets::generateUrl` no longer takes an FS as first argument (see [here](craftcms/cms#14353)). Craft 5 only.
  • Loading branch information
olivierbon authored Apr 16, 2024
1 parent 0451b2d commit 6cd4959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/AssetHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static function indexExistingFile($urlFromFeed, string $conflict, $field
$asset->folderId = $folder->id;
$asset->folderPath = $folder->path;
$asset->volumeId = $volume->id;
$targetUrl = AssetsHelper::generateUrl($volume->getFs(), $asset);
$targetUrl = AssetsHelper::generateUrl($asset);

$rootUrl = $volume->getRootUrl() ?? '';
$targetPath = str_replace($rootUrl, '', $targetUrl);
Expand Down

0 comments on commit 6cd4959

Please sign in to comment.