Changeset 2152
- Timestamp:
- 02/23/2008 12:56:52 AM (8 months ago)
- Location:
- trunk/system
- Files:
-
- 2 modified
-
core/Kohana.php (modified) (1 diff)
-
libraries/View.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 -
trunk/system/libraries/View.php
r2139 r2152 57 57 58 58 // Load the filename and set the content type 59 $this->kohana_filename = Kohana::find_file('views', $name .'.'.$type, TRUE, $type);59 $this->kohana_filename = Kohana::find_file('views', $name, TRUE, $type); 60 60 $this->kohana_filetype = Config::item('mimes.'.$type); 61 61 $this->kohana_filetype = empty($this->kohana_filetype) ? $type : $this->kohana_filetype;
