Skip to content

Commit

Permalink
Update ext_localconf.php
Browse files Browse the repository at this point in the history
  • Loading branch information
t3solution authored Jul 25, 2022
1 parent 78ff495 commit d9cdaf9
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use T3SBS\T3sbootstrap\Hooks\PageRenderer\PreProcessHook;
use T3SBS\T3sbootstrap\Updates\T3sbMigrateUpdateWizard;
use T3SBS\T3sbootstrap\Hooks\NewsFlexFormHook;
use TYPO3\CMS\Core\Information\Typo3Version;

defined('TYPO3') || die();

Expand All @@ -26,18 +27,20 @@
/***************
* Register Icons
*/

if ( $GLOBALS['TYPO3_REQUEST'] ?? null && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend() ) {

$iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);

// FontawesomeIconProvider
$iconRegistry->registerIcon(
'buttongroup',
FontawesomeIconProvider::class,
['name' => 'bars']
);
unset($iconRegistry);
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() < 11) {

if ( $GLOBALS['TYPO3_REQUEST'] ?? null && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend() ) {

$iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);

// FontawesomeIconProvider
$iconRegistry->registerIcon(
'buttongroup',
FontawesomeIconProvider::class,
['name' => 'bars']
);
unset($iconRegistry);
}
}

/***************
Expand Down

0 comments on commit d9cdaf9

Please sign in to comment.