[BUGFIX] RTE: Quickedit mode - RTE has no user CSS 69/33569/5
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 27 Oct 2014 14:11:56 +0000 (10:11 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Sat, 1 Nov 2014 15:02:27 +0000 (16:02 +0100)
Fix wrong absolute path calculation.

Releases: master, 6.2
Resolves: #56408
Change-Id: Ia96197f0dcf81bb8b52b511c75ae303a85ec9b97
Reviewed-on: http://review.typo3.org/33569
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
typo3/sysext/rtehtmlarea/Classes/RteHtmlAreaBase.php

index f607f8e..6c11438 100644 (file)
@@ -529,7 +529,8 @@ class RteHtmlAreaBase extends \TYPO3\CMS\Backend\Rte\AbstractRte {
                if ($fileName) {
                        $fileName = $this->getFullFileName($fileName);
                }
-               $absolutePath = $fileName ? GeneralUtility::resolveBackPath(PATH_site . ($this->is_FE() || $this->isFrontendEditActive() ? '' : TYPO3_mainDir) . $fileName) : '';
+               $backPathResolvedFileName = $fileName ? GeneralUtility::resolveBackPath(($this->is_FE() || $this->isFrontendEditActive() ? '' : TYPO3_mainDir) . $fileName) : '';
+               $absolutePath = $fileName ? GeneralUtility::getFileAbsFileName($backPathResolvedFileName) : '';
                // Fallback to default content css file if configured file does not exists or is of zero size
                if (!$fileName || !file_exists($absolutePath) || !filesize($absolutePath)) {
                        $fileName = $this->getFullFileName('EXT:' . $this->ID . '/res/contentcss/default.css');