missing some init() checks

This commit is contained in:
Andy Miller
2015-07-24 10:55:57 -06:00
parent 16f779c8f5
commit 8e57839271

View File

@@ -87,6 +87,8 @@ class Inflector
*/
public function singularize($word, $count = 1)
{
$this->init();
if ($count != 1) {
return $word;
}
@@ -267,6 +269,8 @@ class Inflector
*/
public function ordinalize($number)
{
$this->init();
if (in_array(($number % 100), range(11, 13))) {
return $number.$this->ordinals['default'];
} else {