Changeset 3335 for trunk/modules
- Timestamp:
- 08/15/2008 03:05:44 AM (3 months ago)
- Files:
-
- 1 modified
-
trunk/modules/smarty/libraries/MY_View.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/smarty/libraries/MY_View.php
r3326 r3335 5 5 public function __construct($name, $data = NULL, $type = NULL) 6 6 { 7 $ type = NULL;7 $ext = empty($type) ? Kohana::config('smarty.templates_ext') : $type; 8 8 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)) 10 10 { 11 $type = empty($type) ? Kohana::config('smarty.templates_ext') : $type;11 $type = $ext; 12 12 } 13 13
