Topic: Language select only check directory not for files.
I found out that when you got a directory in the lang directory it will be listed as a language in the options for profile, register and admin.
Normally you won't have empty dirs in lang but because i update my site trough a cvs. There is a directory CVS in lang. The CVS dir will show up every where as a language option.
When you select the language that is actually a empty dir. PunBB will report that the language files are missing. But will update the user settings with the faulty language. Leaving the forum unusable for the user.
To correct the user profile direct edit in de db is then necessary.
Again this will affect very few users of punBB. The only normal example I can think of is when you de-install a language but forget to delete the language directory itself.
My idea to correct this would be to test for the correctness of the language before updating db. And to prevent for empty dirs showing up in the forum. There might be a need for a function that checks if all necessary files for a language are present.
Maybe not a real bug but something that could be addressed for a future version.
- Orpheus Blog | Club 212 | Drive In Show | Resource Repository for Open Source Software-