Changeset 2152 for trunk/system/core/Kohana.php
- Timestamp:
- 02/23/2008 12:56:52 AM (9 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Kohana.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r2143 r2152 706 706 { 707 707 // Users can define their own extensions, .css, etc 708 $ext = ($ext == FALSE) ? EXT: $ext;708 $ext = ($ext == FALSE) ? ltrim(EXT, '.') : $ext; 709 709 710 710 // Find the file and return its filename 711 711 foreach (Config::include_paths() as $path) 712 712 { 713 if (is_file($path.$search. $ext))714 return $found[$hash] = $path.$search. $ext;713 if (is_file($path.$search.'.'.$ext)) 714 return $found[$hash] = $path.$search.'.'.$ext; 715 715 } 716 716
