Skip to content

Commit

Permalink
[TASK] replace removed extRelPath
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmatseriks authored and dmh committed Dec 4, 2018
1 parent c54abb3 commit e46e794
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Classes/UserFunction/IconFontSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,18 @@ private function getListOfFilesFromCssUrls($absFileName)
*/
protected function addStylesAndJavascriptToForm()
{
$extCssRel = ExtensionManagementUtility::extRelPath('theme_t3kit') . 'Resources/Public/BE/css/iconFontSelector.css';
$pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
$pageRenderer->addCssFile(rtrim($this->cssFileInformation['relativePath'], '/') . '/' . $this->cssFileInformation['basename']);
$extPath = ExtensionManagementUtility::extPath('theme_t3kit');
$extWebPath = PathUtility::getAbsoluteWebPath($extPath);
$extCssRel = $extWebPath . 'Resources/Public/BE/css/iconFontSelector.css';

$pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Page\PageRenderer::class
);
$pageRenderer->addCssFile(
rtrim($this->cssFileInformation['relativePath'], '/') .
'/' .
$this->cssFileInformation['basename']
);
$pageRenderer->addCssFile($extCssRel);
}

Expand Down

0 comments on commit e46e794

Please sign in to comment.