Show
Ignore:
Timestamp:
12/19/2007 11:27:52 PM (13 months ago)
Author:
armen
Message:

You can set custom file type for views, now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/View.php

    r1533 r1592  
    5959                        $this->kohana_filename = Kohana::find_file('views', $name.'.'.$type, TRUE, $type); 
    6060                        $this->kohana_filetype = Config::item('mimes.'.$type); 
     61                        $this->kohana_filetype = empty($this->kohana_filetype) ? $type : $this->kohana_filetype;                 
    6162                } 
    6263 
     
    165166        public function render($print = FALSE, $renderer = FALSE) 
    166167        { 
    167                 if ($this->kohana_filetype === EXT) 
     168                if (is_string($this->kohana_filetype)) 
    168169                { 
    169170                        // Merge global and local data, local overrides global with the same name