From 8e57839271ccdd3f2b2591e94eea01d99df3d0e2 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 24 Jul 2015 10:55:57 -0600 Subject: [PATCH] missing some init() checks --- system/src/Grav/Common/Inflector.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/src/Grav/Common/Inflector.php b/system/src/Grav/Common/Inflector.php index 2c89f7313..ff1030ef7 100644 --- a/system/src/Grav/Common/Inflector.php +++ b/system/src/Grav/Common/Inflector.php @@ -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 {