Changeset 2923 for trunk/system/helpers/inflector.php
- Timestamp:
- 06/27/2008 09:44:24 AM (5 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/inflector.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/inflector.php
r2918 r2923 36 36 } 37 37 38 return isset(self::$uncountable[ $str]);38 return isset(self::$uncountable[strtolower($str)]); 39 39 } 40 40 … … 137 137 if (isset(self::$irregular[strtolower($str)])) 138 138 { 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)]; 146 140 } 147 141 elseif (preg_match('/[sxz]$/i', $str) OR preg_match('/[^aeioudgkprt]h$/i', $str))
