In the xmlsitemap_output function you must put the '$link_count = _xmlsitemap_link_count();' line before 'if (isset($chunk)) {' so that $link_count is available for the 'if ($link_count > $chunk_size) {' line.
Sorry but i cannot make a patch right now.
Comments
Comment #1
andreiashu commentedComment #2
avpadernoThanks for your report. I will correct the problem.
There is no problem with not having a patch; the explanation you gave is enough to understand what is wrong in the code, and you also gave the solution to the problem. That is already a lot of work, and it's well appreciated.
Comment #3
avpadernoIt has been fixed in CVS.
Thanks again for your report.
Comment #5
avpaderno