Commit 7fbc1303 authored by Dave Reid's avatar Dave Reid

#557300 by Dave Reid: Fixed node lastmod values not updated when comments are added.

parent c6d05dd8
......@@ -222,7 +222,7 @@ function xmlsitemap_node_create_link(stdClass &$node) {
//node_access_acquire_grants($node);
// The following values must always be checked because they are volatile.
$node->xmlsitemap['lastmod'] = isset($node->changed) ? $node->changed : REQUEST_TIME;
$node->xmlsitemap['lastmod'] = count($timestamps) ? max($timestamps) : 0;
$node->xmlsitemap['access'] = $node->nid ? xmlsitemap_node_view_access($node, drupal_anonymous_user()) : 1;
$node->xmlsitemap['language'] = isset($node->language) ? $node->language : 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