Skip to content

Commit

Permalink
[BUGFIX] Avoid LocalizationUtility in Grid class
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Jan 26, 2025
1 parent 2167018 commit e76740a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Classes/Form/Container/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use FluidTYPO3\Flux\Integration\FormEngine\SelectOption;
use FluidTYPO3\Flux\Utility\ColumnNumberUtility;
use TYPO3\CMS\Backend\View\BackendLayout\BackendLayout;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;

class Grid extends AbstractFormContainer implements ContainerInterface
{
Expand Down Expand Up @@ -177,9 +176,7 @@ protected function createBackendLayout(string $name, string $label, string $conf
{
return new BackendLayout(
$name,
(string) LocalizationUtility::translate($label)
? $label
: 'LLL:EXT:flux/Resources/Private/Language/locallang.xlf:flux.grid.grids.grid',
$label ?: 'LLL:EXT:flux/Resources/Private/Language/locallang.xlf:flux.grid.grids.grid',
$configuration
);
}
Expand Down

0 comments on commit e76740a

Please sign in to comment.