Skip to content

Commit ddb35bd

Browse files
committed
Replace TL_MODE for C5
1 parent 1d8c4dc commit ddb35bd

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/diagnostics.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ jobs:
2121
php: '8.2'
2222
phpcq_install: 'update'
2323
phpcq_flags: '--exit-0'
24-
- contao: '~5.1.0'
24+
- contao: '~5.3.0'
2525
php: '8.1'
2626
phpcq_install: 'update'
2727
phpcq_flags: ''
28-
- contao: '~5.1.0'
29-
php: '8.2'
28+
- contao: '~5.3.0'
29+
php: '8.2'
30+
phpcq_install: 'update'
31+
phpcq_flags: ''
32+
- contao: '~5.3.0'
33+
php: '8.3'
3034
phpcq_install: 'update'
3135
phpcq_flags: '--exit-0'
3236

.phpcq.yaml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ phpcq:
5353
- 31C7E470E2138192
5454
- 9093F8B32E4815AA
5555
- 5E6DDE998AB73B8E
56+
- A978220305CD5C32
5657
# Composer normalize
5758
- C00543248C87FB13
5859
# phpmd

src/Contao/Widgets/MultiColumnWizard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ private function buildWidgetForDcGeneral(array $arrData, array &$arrField)
13371337
$model->setId(9999999);
13381338
$model->setProperty($property->getName(), $arrField['value']);
13391339

1340-
if (TL_MODE === 'FE') {
1340+
if ($this->contaoApi->isFrontend()) {
13411341
$manager = new WidgetManager($environment, $model);
13421342
} else {
13431343
$manager = new ContaoWidgetManager($environment, $model);

0 commit comments

Comments
 (0)