Skip to content

Commit

Permalink
Merge pull request #225 from ohader/forge-96374
Browse files Browse the repository at this point in the history
[TASK] Use GeneralUtility::getFileAbsFileName for resolving web assets
  • Loading branch information
fsuter committed Dec 17, 2021
2 parents c763db8 + b6a0954 commit 5b5e1df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Classes/Controller/DataModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ protected function initializeView(ViewInterface $view): void
parent::initializeView($view);
}
$publicResourcesPath = PathUtility::getAbsoluteWebPath(
ExtensionManagementUtility::extPath('external_import')
) . 'Resources/Public/';
ExtensionManagementUtility::extPath('external_import') . 'Resources/Public/'
);
$pageRenderer = $view->getModuleTemplate()->getPageRenderer();
$pageRenderer->addCssFile($publicResourcesPath . 'StyleSheet/ExternalImport.css');
$pageRenderer->addRequireJsConfiguration(
Expand Down
5 changes: 3 additions & 2 deletions Classes/Controller/LogModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Cobweb\ExternalImport\Domain\Repository\LogRepository;
use TYPO3\CMS\Backend\View\BackendTemplateView;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\PathUtility;
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
Expand Down Expand Up @@ -78,8 +79,8 @@ protected function initializeView(ViewInterface $view): void
}
$pageRenderer = $view->getModuleTemplate()->getPageRenderer();
$publicResourcesPath = PathUtility::getAbsoluteWebPath(
ExtensionManagementUtility::extPath('external_import')
) . 'Resources/Public/';
ExtensionManagementUtility::extPath('external_import') . 'Resources/Public/'
);
$pageRenderer->addCssFile($publicResourcesPath . 'StyleSheet/ExternalImport.css');
$pageRenderer->addRequireJsConfiguration(
[
Expand Down

0 comments on commit 5b5e1df

Please sign in to comment.