Ticket #706 (closed Bug: fixed)

Opened 4 months ago

Last modified 4 months ago

"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

Changed 4 months ago by Shadowhand

  • status changed from new to closed
  • resolution set to fixed

Has already been fixed in r3169. Please make sure you are complete updated before reporting bugs about SVN.

Changed 4 months ago by isaiahdw

Ah, sorry about that Shadowhand. I had just done a svn update, but for some reason my Kohana.php file didn't get updated.

Thanks as always!

Note: See TracTickets for help on using tickets.