Changeset 2154
- Timestamp:
- 02/23/2008 01:18:13 AM (11 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
modules/gmaps/controllers/google_map.php (modified) (1 diff)
-
system/core/Kohana.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/gmaps/controllers/google_map.php
r2084 r2154 36 36 { 37 37 header('Content-Type: text/xml; charset=utf-8'); 38 require Kohana::find_file('views', 'gmaps/rss', FALSE, ' .xml');38 require Kohana::find_file('views', 'gmaps/rss', FALSE, 'xml'); 39 39 } 40 40 -
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 }
