Commit 3bce1c47 authored by Nicole Cordes's avatar Nicole Cordes Committed by Benni Mack
Browse files

[BUGFIX] Use correct path to JS resources

This problem is related to the change https://review.typo3.org/48915/.
The patch removed usage of ExtensionManagementUtility::extRelPath and
replaced it with other calls. While trying to resolve a relative path
in BackendController::loadResourcesForRegisteredNavigationComponents,
a wrong replacement was introduced. This patch ensures the old behaviour
to retrieve the relative path.

Resolves: #78490
Releases: master
Change-Id: I2c2edf6d1b02efd95b4485da88777eec0dd515c6
Reviewed-on: https://review.typo3.org/50475


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Malte Koitka's avatarMalte Koitka <malte@cytrus.de>
Tested-by: Malte Koitka's avatarMalte Koitka <malte@cytrus.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 12c19164
......@@ -360,7 +360,7 @@ class BackendController
$info['extKey'] = 'backend';
}
$absoluteComponentPath = ExtensionManagementUtility::extPath($info['extKey']) . $componentDirectory;
$relativeComponentPath = PathUtility::getAbsoluteWebPath($absoluteComponentPath);
$relativeComponentPath = PathUtility::getRelativePath(PATH_site . TYPO3_mainDir, $absoluteComponentPath);
$cssFiles = GeneralUtility::getFilesInDir($absoluteComponentPath . 'css/', 'css');
if (file_exists($absoluteComponentPath . 'css/loadorder.txt')) {
// Don't allow inclusion outside directory
......
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