Commit 4cc0b5be authored by Dave Reid's avatar Dave Reid

#555574 by Dave Reid: Only submit default language sitemap if the "Add all the...

#555574 by Dave Reid: Only submit default language sitemap if the "Add all the links to the default language sitemap" option is enabled.
parent 886c8d7a
......@@ -119,9 +119,15 @@ function xmlsitemap_engines_ping_sitemap($engine = NULL) {
),
);
// Get a list of enabled languages.
$languages = language_list('enabled');
$languages = $languages[1];
if (variable_get('xmlsitemap_all_links_to_default_language', 0)) {
// Only submit the default language sitemap since it contains every link.
$languages = array(language_default());
}
else {
// Get a list of enabled languages.
$languages = language_list('enabled');
$languages = $languages[1];
}
foreach ($languages as $language) {
if (!isset($engine)) {
......
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