Skip to content

Commit

Permalink
BUGFIX: Use created timestamp as fallback for `lastModificationDate…
Browse files Browse the repository at this point in the history
…Time` in sitemap.xml
  • Loading branch information
ahaeslich committed May 2, 2023
1 parent b89ce19 commit 4928e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Fusion/XmlSitemapUrlsImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected function collectItems(array &$items, Subtree $subtree): void
if ($this->isDocumentNodeToBeIndexed($node)) {
$item = [
'node' => $node,
'lastModificationDateTime' => $node->timestamps->lastModified,
'lastModificationDateTime' => $node->timestamps->lastModified ?: $node->timestamps->created,
'priority' => $node->getProperty('xmlSitemapPriority') ?: '',
'images' => [],
];
Expand Down

0 comments on commit 4928e87

Please sign in to comment.