Commit 2852e972 authored by git's avatar git Committed by pifagor

Issue #2987673 by SurfinSpirit, pifagor, zread: Sitemap is not language aware

parent 99dc2e6a
......@@ -209,8 +209,7 @@ function xmlsitemap_generate_chunk(stdClass $sitemap, XMLSitemapWriter $writer,
// Remove query or fragment.
$link['loc'] = $parsed_url['path'];
if ($url_options['alias']) {
$link['language'] = is_object($link['language']) ? $link['language']->language : $link['language'];
$link['loc'] = xmlsitemap_get_path_alias($link['loc'], $link['language']);
$link['loc'] = xmlsitemap_get_path_alias($link['loc'], $link['language']->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