Changeset 2621

Show
Ignore:
Timestamp:
05/05/2008 04:45:17 AM (5 months ago)
Author:
Geert
Message:

Some minor cleanups

Location:
trunk/system
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/config/mimes.php

    r1766 r2621  
    5353        'jpe'   => array('image/jpeg', 'image/pjpeg'), 
    5454        'js'    => array('application/x-javascript'), 
    55         'json'  =>  array('application/json'),  
     55        'json'  => array('application/json'),  
    5656        'lha'   => array('application/octet-stream'), 
    5757        'log'   => array('text/plain', 'text/x-log'), 
  • trunk/system/core/Kohana.php

    r2620 r2621  
    167167                        } 
    168168 
    169                         // To validate the filename extension 
    170                         $ext = -(strlen(EXT)); 
    171  
    172169                        foreach ($hooks as $hook) 
    173170                        { 
    174                                 if (substr($hook, $ext) === EXT) 
     171                                // Validate the filename extension 
     172                                if (substr($hook, -(strlen(EXT))) === EXT) 
    175173                                { 
    176174                                        // Hook was found, include it 
     
    965963                $keys = explode('.', $keys); 
    966964 
    967                 // Create reference the the array 
     965                // Create reference to the array 
    968966                $row =& $array; 
    969967