summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/helpers/inflector_helper.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php
index 04e178aec..83bf28098 100644
--- a/system/helpers/inflector_helper.php
+++ b/system/helpers/inflector_helper.php
@@ -303,13 +303,12 @@ if ( ! function_exists('ordinal_format'))
8 => 'th',
9 => 'th'
);
+
if (($number % 100) >= 11 && ($number % 100) <= 13)
{
return $number.'th';
}
- else
- {
- return $number.$last_digit[$number % 10];
- }
+
+ return $number.$last_digit[$number % 10];
}
-} \ No newline at end of file
+}