Show
Ignore:
Timestamp:
07/20/2008 11:15:31 AM (5 months ago)
Author:
Shadowhand
Message:

Follow up to r3160, updated modules

Location:
trunk/modules/smarty/libraries
Files:
3 modified

Legend:

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

    r2532 r3163  
    77                parent::__construct(); 
    88         
    9                 if (Config::item('smarty.integration') == TRUE) 
     9                if (Kohana::config('smarty.integration') == TRUE) 
    1010                { 
    1111                        $this->MY_Smarty = new MY_Smarty; 
     
    1818                        return; 
    1919 
    20                 if (substr(strrchr($template, '.'), 1) === Config::item('smarty.templates_ext'))  
     20                if (substr(strrchr($template, '.'), 1) === Kohana::config('smarty.templates_ext'))  
    2121                { 
    2222                        // Assign variables to the template 
  • trunk/modules/smarty/libraries/MY_Smarty.php

    r2532 r3163  
    88        { 
    99                // Check if we should use smarty or not 
    10                 if (Config::item('smarty.integration') == FALSE)  
     10                if (Kohana::config('smarty.integration') == FALSE)  
    1111                        return; 
    1212 
     
    1414                parent::Smarty(); 
    1515 
    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'); 
    2626 
    2727                // check if cache directory is exists 
     
    3636                if ($this->security) 
    3737                { 
    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')); 
    4040 
    4141                        $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'); 
    4444                }     
    4545                 
    4646                // 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')); 
    5050 
    5151                // Add all helpers to plugins_dir 
  • trunk/modules/smarty/libraries/MY_View.php

    r2532 r3163  
    77                $type = NULL; 
    88 
    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)) 
    1010                { 
    11                         $type = empty($type) ? Config::item('smarty.templates_ext') : $type; 
     11                        $type = empty($type) ? Kohana::config('smarty.templates_ext') : $type; 
    1212                } 
    1313