Skip to content

Commit

Permalink
Always assume auto items are enabled (e.g. in Contao 5)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Apr 14, 2023
1 parent 4e2ac3b commit b2ddbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Navigation/UrlParameterBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function generateParameters(): ?string
throw new \RuntimeException('Do not set auto_item parameter');
}

if ($GLOBALS['TL_CONFIG']['useAutoItem'] ?? null) {
if ($GLOBALS['TL_CONFIG']['useAutoItem'] ?? true) {
$auto_item = array_intersect_key($attributes, array_flip((array) ($GLOBALS['TL_AUTO_ITEM'] ?? [])));

switch (\count($auto_item)) {
Expand Down

0 comments on commit b2ddbf9

Please sign in to comment.