summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-10-21 17:06:26 +0200
committerAndrey Andreev <narf@devilix.net>2016-10-21 17:06:26 +0200
commite7e70c3532f06ac008cfc038791fcb46d4a551ed (patch)
tree51baa5802ab6f344014bf31be6fcc646c8596505
parent4de4f4c88ea49db3867882f21b727e953ca1a590 (diff)
[ci skip] Add changelog entry for PR #4862
-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.