bug in "generate_sitemap" job (5.3.3.1)

Permalink 1 user found helpful
the sitemap job also includes external links in the sitemap.xml

to prevent this you have to add the following code:
if($c->isExternalLink()) {
   continue;
}

after these codelines:
if($c->getAttribute("exclude_sitemapxml")) {
   continue;
}

approx. line 71.

2nd bug, but only a small one: there is a white space after the first "<lastmod>" entry (source code line 39). this should also be removed.

I attach the correct "generate_sitemap.php". Please can someone add this to CVS / SVN?

1 Attachment

scalait
 
Tony replied on at Permalink Best Answer Reply
Tony
cool, that's been added to svn
scalait replied on at Permalink Reply
scalait
thank you very much for that quick help!