Skip to content
Permalink
Browse files

Fix Inflector::singularize bug with custom irregular singular rule no…

…t being parsed.
  • Loading branch information...
jperras committed Mar 22, 2009
1 parent a9952e9 commit 6c1c6ada71ba99dae444cce126ef272d762a8bda
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/inflector.php
@@ -281,7 +281,7 @@ function singularize($word) {
extract($_this->singular);
$uninflected = array_merge($uninflected, $_this->uninflected);
$irregular = array_flip($_this->plural['irregular']);
$irregular = array_merge($irregular, array_flip($_this->plural['irregular']));
if (!isset($_this->singular['cacheUninflected']) || !isset($_this->singular['cacheIrregular'])) {
$_this->singular['cacheUninflected'] = '(?:' . join( '|', $uninflected) . ')';

0 comments on commit 6c1c6ad

Please sign in to comment.
You can’t perform that action at this time.