Show
Ignore:
Timestamp:
08/15/2008 03:05:44 AM (3 months ago)
Author:
armen
Message:

closes #709 and #771, thanks ixmatus and nicklevett

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/smarty/libraries/MY_View.php

    r3326 r3335  
    55        public function __construct($name, $data = NULL, $type = NULL) 
    66        { 
    7                 $type = NULL; 
     7                $ext = empty($type) ? Kohana::config('smarty.templates_ext') : $type; 
    88 
    9                 if (Kohana::config('smarty.integration') == TRUE AND Kohana::find_file('views', $name, FALSE, $type)) 
     9                if (Kohana::config('smarty.integration') == TRUE AND Kohana::find_file('views', $name, FALSE, $ext)) 
    1010                { 
    11                         $type = empty($type) ? Kohana::config('smarty.templates_ext') : $type; 
     11                        $type = $ext; 
    1212                } 
    1313