summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-04-14 14:39:49 +0200
committerAndrey Andreev <narf@devilix.net>2015-04-14 14:39:49 +0200
commit3eea247622f5dc72d44bbd13ae05eb913b7ad24e (patch)
tree7e4b2b60f068cb64946c3ee3f8795481d7b1ed1c /system/helpers
parent58efdd3e1380daa01e609098d0fcb88e56b2cf67 (diff)
parent1a973c31f7ed13b8edb70026b3b1a064f5f4fba7 (diff)
Merge pull request #3770 from ftwbzhao/feature/ci/helper
[ci skip] plural() support for 'quiz' -> 'quizzes'
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/inflector_helper.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php
index d8ed45df9..f2890059f 100644
--- a/system/helpers/inflector_helper.php
+++ b/system/helpers/inflector_helper.php
@@ -133,6 +133,7 @@ if ( ! function_exists('plural'))
}
$plural_rules = array(
+ '/(quiz)$/' => '\1zes', // quizzes
'/^(ox)$/' => '\1\2en', // ox
'/([m|l])ouse$/' => '\1ice', // mouse, louse
'/(matr|vert|ind)ix|ex$/' => '\1ices', // matrix, vertex, index