Commit 9dd6fc80 authored by devad's avatar devad Committed by pifagor

Issue #1396220 by earnie, devad, chromix, trante, andrei.dincu, pifagor,...

Issue #1396220 by earnie, devad, chromix, trante, andrei.dincu, pifagor, alex_optim, scareyclott, 2pha, gratefulsk, Grayside, marcoka, jasom, aralnoth, agerson: xmlsitemap_generate_chunk error
parent 936c3578
......@@ -206,7 +206,8 @@ function xmlsitemap_generate_chunk(stdClass $sitemap, XMLSitemapWriter $writer,
while ($link = $links->fetchAssoc()) {
$link['language'] = $link['language'] != LANGUAGE_NONE ? xmlsitemap_language_load($link['language']) : $url_options['language'];
if ($url_options['alias']) {
$link['loc'] = xmlsitemap_get_path_alias($link['loc'], $link['language']->language);
$link['language'] = is_object($link['language']) ? $link['language']->language : $link['language'];
$link['loc'] = xmlsitemap_get_path_alias($link['loc'], $link['language']);
}
$link_options = array(
'language' => $link['language'],
......
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