Commit 0d38ced6 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benni Mack
Browse files

[BUGFIX] Do not call getPublicUrl() with second argument set

Since #94193 calling ResourceStorage->getPublicUrl()
with the second argument "$relativeToCurrentScript" set,
is deprecated.

This patch therefore removes this argument from a call
in TypoScriptFrontendController.

Resolves: #94449
Releases: master
Change-Id: If1ef240bbcaf1bb9f31e9a4cc7c395b3702da5c3

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
parent 56c0bfd7
......@@ -2957,7 +2957,7 @@ class TypoScriptFrontendController implements LoggerAwareInterface
$storages = $storageRepository->findAll();
foreach ($storages as $storage) {
if ($storage->getDriverType() === 'Local' && $storage->isPublic() && $storage->isOnline()) {
$folder = $storage->getPublicUrl($storage->getRootLevelFolder(), true);
$folder = $storage->getPublicUrl($storage->getRootLevelFolder());
$search[] = '"' . $folder;
$replace[] = '"' . $this->absRefPrefix . $folder;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment