Captcha calls locale_language_list() function, which is declared in locale module, while site_map calls locale_supported_languages(), which is not (nor it is elsewhere). This causes white screen of death at /admin/settings/sitemap.
I've just replaced the function call in site_map.admin.inc with the one from captcha (by the way, the same one is called in site_map.install as well).
Besides, I've had to edit also the argument handling few lines below - instead of:
foreach ($langs['name'] as $lang_code => $lang_name) {
I've had to put:
foreach ($langs as $lang_code => $lang_name) {
to get rid of the error message about the wrong argument supplied.
I don't know however if the result I am getting this way is as it has been intended or not, it is just the way to get rid of errors... ;-)
Comments
Comment #1
thomas23@drupal.org commentedsame here.
In a first attampt the text I put into them boxes wouldn't display on the sitemap.
Cheers.
Comment #2
frjo commentedI committed Drupal 5 code of mistake, sorry about that. I have now committed Drupal 6 code that should work better. The language support function is a direct copy from the Captcha module.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.