Show
Ignore:
Timestamp:
06/27/2008 09:44:24 AM (5 months ago)
Author:
Shadowhand
Message:

Fixing #665, thanks rafaelss

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/inflector.php

    r2918 r2923  
    3636                } 
    3737 
    38                 return isset(self::$uncountable[$str]); 
     38                return isset(self::$uncountable[strtolower($str)]); 
    3939        } 
    4040 
     
    137137                if (isset(self::$irregular[strtolower($str)])) 
    138138                { 
    139                         $str = self::$irregular[$str]; 
    140  
    141                         if ($low === FALSE) 
    142                         { 
    143                                 // Make uppercase 
    144                                 $str = strtoupper($str); 
    145                         } 
     139                        $str = self::$irregular[strtolower($str)]; 
    146140                } 
    147141                elseif (preg_match('/[sxz]$/i', $str) OR preg_match('/[^aeioudgkprt]h$/i', $str))