Commit cf0873c5 authored by Dave Reid's avatar Dave Reid

Issue #2244449: Fixed regression generating sitemap index links.

parent 56e0c2ad
......@@ -199,9 +199,8 @@ class XMLSitemapIndexWriter extends XMLSitemapWriter {
$lastmod_format = variable_get('xmlsitemap_lastmod_format', XMLSITEMAP_LASTMOD_MEDIUM);
for ($i = 1; $i <= $this->sitemap->chunks; $i++) {
$url_options['query']['page'] = $i;
$element = array(
'loc' => $this->getSitemapUrl('sitemap.xml'),
'loc' => $this->getSitemapUrl('sitemap.xml', array('query' => array('page' => $i))),
// @todo Use the actual lastmod value of the chunk file.
'lastmod' => gmdate($lastmod_format, REQUEST_TIME),
);
......
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