Ticket #138 (new defect)
Solar_Locale::fetch() generates a miss-configured parents directory stack. (Affects Solar_Auth!)
| Reported by: | umka.dk@… | Owned by: | pmjones |
|---|---|---|---|
| Priority: | critical | Component: | code |
| Keywords: | Solar_Locale, Solar_Auth | Cc: |
Description
From what I can work out, Solar_Locale::fetch() does not determine correctly a directory stack ($parents) of where possible locale files may reside when the framework is configured to use a custom locale class which uses a locale other then one of the supplied defaults. In other words, the bug is present when the following conditions are true:
- My_Locale extends Solar_Locale
- My_Locale::setCode('en_GB')
This results in a key=>value file for a custom locale class never being read by Solar_Auth (as executed by Solar_User). If the locale file is never read then Solar_Auth has no way of determining if a current form submission is a login attempt or not, as a result a valid user will not be able to login and no error message will be displayed.
