Commit da264b2f authored by jweowu's avatar jweowu Committed by pifagor

Issue #1963964 by jweowu, alex_optim, pifagor: Don't use $reset flag with node_load()

parent 2852e972
......@@ -103,7 +103,7 @@ function xmlsitemap_node_node_delete(stdClass $node) {
* Implements hook_comment_update().
*/
function xmlsitemap_node_comment_update(stdClass $comment) {
if ($node = node_load($comment->nid, NULL, TRUE)) {
if ($node = entity_load_unchanged('node', $comment->nid)) {
xmlsitemap_node_node_update($node);
}
}
......
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