Changeset 2154

Show
Ignore:
Timestamp:
02/23/2008 01:18:13 AM (11 months ago)
Author:
Shadowhand
Message:

Follow up for r2152.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/gmaps/controllers/google_map.php

    r2084 r2154  
    3636        { 
    3737                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'); 
    3939        } 
    4040 
  • trunk/system/core/Kohana.php

    r2152 r2154  
    705705                else 
    706706                { 
    707                         // Users can define their own extensions, .css, etc 
    708                         $ext = ($ext == FALSE) ? ltrim(EXT, '.') : $ext; 
     707                        // Users can define their own extensions, css, xml, html, etc 
     708                        $ext = ($ext == FALSE) ? EXT : '.'.ltrim($ext, '.'); 
    709709 
    710710                        // Find the file and return its filename 
    711711                        foreach (Config::include_paths() as $path) 
    712712                        { 
    713                                 if (is_file($path.$search.'.'.$ext)) 
     713                                if (is_file($path.$search.$ext)) 
    714714                                        return $found[$hash] = $path.$search.'.'.$ext; 
    715715                        }