Ticket #706 (closed Bug: fixed)
"Undefined variable: locale" on system/core/Kohana.php (1260)
| Reported by: | isaiahdw | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.2 |
| Component: | Core | Version: | SVN HEAD |
| Keywords: | Cc: |
Description
When you have two or more non-existent language keys in the same group you will get a "Undefined variable: locale" error. The first one will cache the group, and the second one will trigger the "Undefined variable: locale" error message.
I fixed this by moving the "$locale = Kohana::config('locale.language.0');" above the "if ( ! isset(self::$internal_cachelanguage?[$group]))" line. So $locale is set even when the language group is cached and the key isn't found.
Change History
Note: See
TracTickets for help on using
tickets.
