Skip to content

Commit

Permalink
Replace TL_MODE for C5
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed May 22, 2024
1 parent 1d8c4dc commit e676834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Contao/Widgets/MultiColumnWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ private function buildWidgetForDcGeneral(array $arrData, array &$arrField)
$model->setId(9999999);
$model->setProperty($property->getName(), $arrField['value']);

if (TL_MODE === 'FE') {
if ($this->contaoApi->isFrontend()) {
$manager = new WidgetManager($environment, $model);
} else {
$manager = new ContaoWidgetManager($environment, $model);
Expand Down

0 comments on commit e676834

Please sign in to comment.