Changeset 2154 for trunk/system/core/Kohana.php
- Timestamp:
- 02/23/2008 01:18:13 AM (11 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Kohana.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r2152 r2154 705 705 else 706 706 { 707 // Users can define their own extensions, .css, etc708 $ext = ($ext == FALSE) ? ltrim(EXT, '.') : $ext;707 // Users can define their own extensions, css, xml, html, etc 708 $ext = ($ext == FALSE) ? EXT : '.'.ltrim($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))713 if (is_file($path.$search.$ext)) 714 714 return $found[$hash] = $path.$search.'.'.$ext; 715 715 }
