Changeset 2138 for trunk/system/core/Kohana.php
- Timestamp:
- 02/22/2008 12:21:12 PM (11 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Kohana.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r2135 r2138 739 739 foreach(Config::include_paths() as $path) 740 740 { 741 // Recursively get and merge all files 741 742 $files = array_merge($files, self::list_files($directory, $recursive, $path.$directory)); 742 743 } … … 779 780 static $language = array(); 780 781 781 $group = current(explode('.', $key)); 782 783 if ( ! isset($language[$group])) 782 // Extract the main group from the key 783 $group = explode('.', $key, 1); 784 $group = $group[0]; 785 786 if (empty($language[$group])) 784 787 { 785 788 // Messages from this file … … 809 812 } 810 813 814 // Get the line from the language 811 815 $line = self::key_string($key, $language); 812 816 … … 881 885 /** 882 886 * Retrieves current user agent information: 883 * keys: browser, version, platform, mobile, robot, referrer, languages, charsets884 * tests: is_browser, is_mobile, is_robot, accept_887 * keys: browser, version, platform, mobile, robot, referrer, languages, charsets 888 * tests: is_browser, is_mobile, is_robot, accept_lang, accept_charset 885 889 * 886 890 * @param string key or test name
