Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/7263'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Mar 25, 2015
2 parents 3ae38fd + c6b68d3 commit ac95d66
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Helper/Navigation/Sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,12 @@ public function getDomSitemap(AbstractContainer $container = null)
$lastmod = date('c', $lastmod);
}

if (!$this->getUseSitemapValidators() ||
$lastmodValidator->isValid($lastmod)) {
if (!$this->getUseSitemapValidators()
|| $lastmodValidator->isValid($lastmod)
) {
// Cast $lastmod to string in case no validation was used
$urlNode->appendChild(
$dom->createElementNS(self::SITEMAP_NS, 'lastmod', $lastmod)
$dom->createElementNS(self::SITEMAP_NS, 'lastmod', (string) $lastmod)
);
}
}
Expand Down

0 comments on commit ac95d66

Please sign in to comment.