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

Follow up for r2152.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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                        }