Commit 60f45058 authored by Dave Reid's avatar Dave Reid

by Dave Reid: Menu item link path is also a volatile value.

parent 365d2a98
......@@ -185,7 +185,6 @@ function xmlsitemap_menu_create_link(array $menu_item) {
$menu_item['xmlsitemap'] += array(
'type' => 'menu',
'id' => $menu_item['mlid'],
'loc' => $menu_item['link_path'],
'status' => $settings['status'],
'status_default' => $settings['status'],
'status_override' => 0,
......@@ -195,6 +194,7 @@ function xmlsitemap_menu_create_link(array $menu_item) {
);
// The following values must always be checked because they are volatile.
$menu_item['xmlsitemap']['loc'] = $menu_item['link_path'];
$menu_item['xmlsitemap']['subtype'] = $menu_item['menu_name'];
$menu_item['xmlsitemap']['access'] = $menu_item['access'] && !$menu_item['external'] && !$menu_item['hidden'];
$menu_item['xmlsitemap']['language'] = isset($menu_item['options']['langcode']) ? $menu_item['options']['langcode'] : LANGUAGE_NONE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment