summaryrefslogtreecommitdiff
path: root/resources/views/modules/sitemap/sitemap-file.xml.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules/sitemap/sitemap-file.xml.phtml')
-rw-r--r--resources/views/modules/sitemap/sitemap-file.xml.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/views/modules/sitemap/sitemap-file.xml.phtml b/resources/views/modules/sitemap/sitemap-file.xml.phtml
index cffa7f9ff3..68720591bd 100644
--- a/resources/views/modules/sitemap/sitemap-file.xml.phtml
+++ b/resources/views/modules/sitemap/sitemap-file.xml.phtml
@@ -3,8 +3,8 @@
<?php foreach ($records as $record) : ?>
<url>
<loc><?= e($record->url()) ?></loc>
- <?php if ($record->getFirstFact('CHAN') !== null) : ?>
- <lastmod><?= $record->getFirstFact('CHAN')->date()->minimumDate()->Format('%Y-%m-%d') ?></lastmod>
+ <?php if ($record->firstFact('CHAN') !== null) : ?>
+ <lastmod><?= $record->firstFact('CHAN')->date()->minimumDate()->Format('%Y-%m-%d') ?></lastmod>
<?php endif ?>
</url>
<?php endforeach ?>