Project

General

Profile

Actions

Bug #36308

closed

CardLayout, path of css file is wrongly calculated

Added by Kay Strobach over 12 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2012-04-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

end of backend.php:

        if (is_array($moduleConfig['cssFiles'])) {
            foreach ($moduleConfig['cssFiles'] as $cssFileName => $cssFile) {
                $TYPO3backend->addCssFile($name, t3lib_div::getFileAbsFileName($cssFile));
            }
        }

should be

        if (is_array($moduleConfig['cssFiles'])) {
            foreach ($moduleConfig['cssFiles'] as $cssFileName => $cssFile) {
                $files = array(t3lib_div::getFileAbsFileName($cssFile));
                $files = t3lib_div::removePrefixPathFromList($files, PATH_site);
                $TYPO3backend->addCssFile($name, t3lib_div::getFileAbsFileName($files[0]));
            }
        }

Otherwise the code tries to load the local file :(

related to 4.7 and master!

Funny, can't assign the issue to me :(


Files

dashboard.zip (6.99 KB) dashboard.zip test extension as requested by tolleiv Kay Strobach, 2012-04-22 15:05

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #38158: Move global code from typo3/backend.php to classClosedMathias Schreiber2012-06-18

Actions
Actions

Also available in: Atom PDF