diff --git a/xmlsitemap_node/xmlsitemap_node.module b/xmlsitemap_node/xmlsitemap_node.module index e7c8035..705fc4b 100644 --- a/xmlsitemap_node/xmlsitemap_node.module +++ b/xmlsitemap_node/xmlsitemap_node.module @@ -56,7 +56,8 @@ function xmlsitemap_node_node_insert(stdClass $node) { function xmlsitemap_node_node_update(stdClass $node) { $link = xmlsitemap_node_create_link($node); if (!empty($link['languages'])) { - $link_status = (int) $link['status']; + $bundle_info = xmlsitemap_link_bundle_load('node', $node->type); + $link_status = (int) $bundle_info['status']; foreach ($link['languages'] as $lang => $lang_status) { $lang_link = $link; $lang_link['language'] = $lang; diff --git a/xmlsitemap_taxonomy/xmlsitemap_taxonomy.module b/xmlsitemap_taxonomy/xmlsitemap_taxonomy.module index 8baaa61..9bdab3f 100644 --- a/xmlsitemap_taxonomy/xmlsitemap_taxonomy.module +++ b/xmlsitemap_taxonomy/xmlsitemap_taxonomy.module @@ -114,7 +114,8 @@ function xmlsitemap_taxonomy_term_insert(stdClass $term) { function xmlsitemap_taxonomy_term_update(stdClass $term) { $link = xmlsitemap_taxonomy_create_link($term); if (!empty($link['languages'])) { - $link_status = (int) $link['status']; + $bundle_info = xmlsitemap_link_bundle_load('taxonomy_term', $term->vocabulary_machine_name); + $link_status = (int) $bundle_info['status']; foreach ($link['languages'] as $lang => $lang_status) { $lang_link = $link; $lang_link['language'] = $lang;