Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Classes/Service/CompileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\PathUtility;

/**
* This service handles the parsing of css files for the frontend.
Expand Down Expand Up @@ -115,6 +116,10 @@ protected function getVariablesFromConstants(ServerRequestInterface $request, st
$prefix = 'plugin.bootstrap_package.settings.' . $extension . '.';
foreach ($constants as $constant => $value) {
if (strpos($constant, $prefix) === 0) {
if (strpos($value, 'EXT:') === 0) {
$publicResourcePath = PathUtility::getPublicResourceWebPath($value);
$value = PathUtility::getCanonicalPath($publicResourcePath);
}
$variables[substr($constant, strlen($prefix))] = $value;
}
}
Expand Down