- 🇮🇹Italy apaderno Brescia, 🇮🇹
Truly, it is not just
'map'
that is not set; 'page_arguments' and 'theme_arguments' are not evenunserialize()
'd.if ($router_item['access']) { $router_item['map'] = $map; $router_item['page_arguments'] = array_merge(menu_unserialize($router_item['page_arguments'], $map), array_slice($map, $router_item['number_parts'])); $router_item['theme_arguments'] = array_merge(menu_unserialize($router_item['theme_arguments'], $map), array_slice($map, $router_item['number_parts'])); }
It seems early optimization which could cause issues. Code that checks whether the currently logged user has access to the router item relies on
$router_item['access']
, not$router_item['map']
.