Changeset 3249 for trunk/modules

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

Removed trailing white spaces.

Location:
trunk/modules/smarty
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/smarty/config/smarty.php

    r2532 r3249  
    1919        ( 
    2020        MODPATH.'smarty/views' 
    21         ),     
     21        ), 
    2222        'if_funcs'              => array         // We'll allow these functions in if statement 
    2323        ( 
    24                 'array',  'list',     'trim',       'isset', 'empty',  
     24                'array',  'list',     'trim',       'isset', 'empty', 
    2525                'sizeof', 'in_array', 'is_array',   'true',  'false', 
    2626                'null',   'reset',    'array_keys', 'end',   'count' 
     
    3838                'trimwhitespace' 
    3939        ), 
    40         'pre_filters'           => array   
     40        'pre_filters'           => array 
    4141        ( 
    42         ),   
     42        ), 
    4343        'escape_exclude_list'   => array 
    4444        ( 
  • trunk/modules/smarty/controllers/smarty_demo.php

    r3168 r3249  
    44{ 
    55        // Do not allow to run in production 
    6         const ALLOW_PRODUCTION = FALSE;     
     6        const ALLOW_PRODUCTION = FALSE; 
    77 
    88        public function index() 
  • 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        }