summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/helpers/inflector_helper.php6
-rw-r--r--user_guide_src/source/changelog.rst1
2 files changed, 4 insertions, 3 deletions
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php
index 83bf28098..f14f57c54 100644
--- a/system/helpers/inflector_helper.php
+++ b/system/helpers/inflector_helper.php
@@ -268,7 +268,7 @@ if ( ! function_exists('is_countable'))
'species',
'swine',
'traffic',
- 'wheat',
+ 'wheat'
)
);
}
@@ -303,12 +303,12 @@ if ( ! function_exists('ordinal_format'))
8 => 'th',
9 => 'th'
);
-
+
if (($number % 100) >= 11 && ($number % 100) <= 13)
{
return $number.'th';
}
-
+
return $number.$last_digit[$number % 10];
}
}
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index 4bff51a93..f60387cd5 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -35,6 +35,7 @@ Release Date: Not Released
- Helpers
+ - Added new function :php:func:`ordinal_format()` to :doc:`Inflector Helper <helpers/inflector_helper>`.
- Updated :doc:`HTML Helper <helpers/html_helper>` function :php:func:`meta()` with support for "charset" and "property" properties.
- Changed :doc:`HTML Helper <helpers/html_helper>` function :php:func:`doctype()` default document type to HTML 5.