Commit d2b58e56 authored by Dave Reid's avatar Dave Reid

#921154 by Dave Reid: Fixed object/array with XMLSitemapIndexWriter::generateXML().

parent f5725271
......@@ -183,7 +183,7 @@ class XMLSitemapIndexWriter extends XMLSitemapWriter {
public function generateXML() {
$lastmod_format = variable_get('xmlsitemap_lastmod_format', XMLSITEMAP_LASTMOD_MEDIUM);
$url_options = $this->sitemap['uri']['options'];
$url_options = $this->sitemap->uri['options'];
$url_options += array(
'absolute' => TRUE,
'base_url' => variable_get('xmlsitemap_base_url', $GLOBALS['base_url']),
......@@ -191,7 +191,7 @@ class XMLSitemapIndexWriter extends XMLSitemapWriter {
'alias' => TRUE,
);
for ($i = 1; $i <= $this->sitemap['chunks']; $i++) {
for ($i = 1; $i <= $this->sitemap->chunks; $i++) {
$url_options['query']['page'] = $i;
$element = array(
'loc' => url('sitemap.xml', $url_options),
......
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