Show
Ignore:
Timestamp:
08/02/2008 06:05:58 AM (4 months ago)
Author:
armen
Message:

Removed trailing white spaces.

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

Legend:

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

    r3163 r3249  
    66        { 
    77                parent::__construct(); 
    8          
     8 
    99                if (Kohana::config('smarty.integration') == TRUE) 
    1010                { 
     
    1212                } 
    1313        } 
    14          
     14 
    1515        public function _kohana_load_view($template, $vars) 
    1616        { 
     
    1818                        return; 
    1919 
    20                 if (substr(strrchr($template, '.'), 1) === Kohana::config('smarty.templates_ext'))  
     20                if (substr(strrchr($template, '.'), 1) === Kohana::config('smarty.templates_ext')) 
    2121                { 
    2222                        // Assign variables to the template 
    23                         if (is_array($vars) AND count($vars) > 0)  
     23                        if (is_array($vars) AND count($vars) > 0) 
    2424                        { 
    2525                                foreach ($vars AS $key => $val) 
     
    3434                        // Fetch the output 
    3535                        $output = $this->MY_Smarty->fetch($template); 
    36                          
    37                 }  
    38                 else  
     36 
     37                } 
     38                else 
    3939                { 
    4040                        $output = parent::_kohana_load_view($template, $vars); 
  • trunk/modules/smarty/libraries/MY_Smarty.php

    r3188 r3249  
    88        { 
    99                // Check if we should use smarty or not 
    10                 if (Kohana::config('smarty.integration') == FALSE)  
     10                if (Kohana::config('smarty.integration') == FALSE) 
    1111                        return; 
    1212 
     
    3030                // check if smarty_compile directory is exists 
    3131                $this->checkDirectory($this->compile_dir); 
    32                  
     32 
    3333                // check if smarty_cache directory is exists 
    3434                $this->checkDirectory($this->cache_dir); 
     
    4242                        $this->security_settings['IF_FUNCS']       = Kohana::config('smarty.if_funcs'); 
    4343                        $this->security_settings['MODIFIER_FUNCS'] = Kohana::config('smarty.modifier_funcs'); 
    44                 }     
    45                  
     44                } 
     45 
    4646                // Autoload filters 
    4747                $this->autoload_filters = array('pre'    => Kohana::config('smarty.pre_filters'), 
     
    5757                } 
    5858        } 
    59          
     59 
    6060        public function checkDirectory($directory) 
    6161        { 
    62                 if ((! file_exists($directory) AND ! @mkdir($directory, 0755)) OR ! is_writable($directory) OR !is_executable($directory))  
     62                if ((! file_exists($directory) AND ! @mkdir($directory, 0755)) OR ! is_writable($directory) OR !is_executable($directory)) 
    6363                { 
    6464                        $error = 'Compile/Cache directory "%s" is not writeable/executable'; 
     
    6767                        throw new Kohana_User_Exception('Compile/Cache directory is not writeable/executable', $error); 
    6868                } 
    69                  
     69 
    7070                return TRUE; 
    7171        } 
  • trunk/modules/smarty/libraries/MY_View.php

    r3163 r3249  
    1111                        $type = empty($type) ? Kohana::config('smarty.templates_ext') : $type; 
    1212                } 
    13          
     13 
    1414                parent::__construct($name, $data, $type); 
    1515        }