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
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69675


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
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