Changeset 3163 for trunk/modules/smarty/libraries
- Timestamp:
- 07/20/2008 11:15:31 AM (5 months ago)
- Location:
- trunk/modules/smarty/libraries
- Files:
-
- 3 modified
-
MY_Controller.php (modified) (2 diffs)
-
MY_Smarty.php (modified) (3 diffs)
-
MY_View.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/smarty/libraries/MY_Controller.php
r2532 r3163 7 7 parent::__construct(); 8 8 9 if ( Config::item('smarty.integration') == TRUE)9 if (Kohana::config('smarty.integration') == TRUE) 10 10 { 11 11 $this->MY_Smarty = new MY_Smarty; … … 18 18 return; 19 19 20 if (substr(strrchr($template, '.'), 1) === Config::item('smarty.templates_ext'))20 if (substr(strrchr($template, '.'), 1) === Kohana::config('smarty.templates_ext')) 21 21 { 22 22 // Assign variables to the template -
trunk/modules/smarty/libraries/MY_Smarty.php
r2532 r3163 8 8 { 9 9 // Check if we should use smarty or not 10 if ( Config::item('smarty.integration') == FALSE)10 if (Kohana::config('smarty.integration') == FALSE) 11 11 return; 12 12 … … 14 14 parent::Smarty(); 15 15 16 $this->cache_dir = Config::item('smarty.cache_path');17 $this->compile_dir = Config::item('smarty.compile_path');18 $this->config_dir = Config::item('smarty.configs_path');19 $this->plugins_dir[] = Config::item('smarty.plugins_path');20 $this->debug_tpl = Config::item('smarty.debug_tpl');21 $this->debugging_ctrl = Config::item('smarty.debugging_ctrl');22 $this->debugging = Config::item('smarty.debugging');23 $this->caching = Config::item('smarty.caching');24 $this->force_compile = Config::item('smarty.force_compile');25 $this->security = Config::item('smarty.security');16 $this->cache_dir = Kohana::config('smarty.cache_path'); 17 $this->compile_dir = Kohana::config('smarty.compile_path'); 18 $this->config_dir = Kohana::config('smarty.configs_path'); 19 $this->plugins_dir[] = Kohana::config('smarty.plugins_path'); 20 $this->debug_tpl = Kohana::config('smarty.debug_tpl'); 21 $this->debugging_ctrl = Kohana::config('smarty.debugging_ctrl'); 22 $this->debugging = Kohana::config('smarty.debugging'); 23 $this->caching = Kohana::config('smarty.caching'); 24 $this->force_compile = Kohana::config('smarty.force_compile'); 25 $this->security = Kohana::config('smarty.security'); 26 26 27 27 // check if cache directory is exists … … 36 36 if ($this->security) 37 37 { 38 $configSecureDirectories = Config::item('smarty.secure_dirs');39 $safeTemplates = array( Config::item('smarty.global_templates_path'));38 $configSecureDirectories = Kohana::config('smarty.secure_dirs'); 39 $safeTemplates = array(Kohana::config('smarty.global_templates_path')); 40 40 41 41 $this->secure_dir = array_merge($configSecureDirectories, $safeTemplates); 42 $this->security_settings['IF_FUNCS'] = Config::item('smarty.if_funcs');43 $this->security_settings['MODIFIER_FUNCS'] = Config::item('smarty.modifier_funcs');42 $this->security_settings['IF_FUNCS'] = Kohana::config('smarty.if_funcs'); 43 $this->security_settings['MODIFIER_FUNCS'] = Kohana::config('smarty.modifier_funcs'); 44 44 } 45 45 46 46 // Autoload filters 47 $this->autoload_filters = array('pre' => Config::item('smarty.pre_filters'),48 'post' => Config::item('smarty.post_filters'),49 'output' => Config::item('smarty.output_filters'));47 $this->autoload_filters = array('pre' => Kohana::config('smarty.pre_filters'), 48 'post' => Kohana::config('smarty.post_filters'), 49 'output' => Kohana::config('smarty.output_filters')); 50 50 51 51 // Add all helpers to plugins_dir -
trunk/modules/smarty/libraries/MY_View.php
r2532 r3163 7 7 $type = NULL; 8 8 9 if ( Config::item('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, $type)) 10 10 { 11 $type = empty($type) ? Config::item('smarty.templates_ext') : $type;11 $type = empty($type) ? Kohana::config('smarty.templates_ext') : $type; 12 12 } 13 13
