aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2011-11-30 21:07:53 +0100
committerJoas Schilling <nickvergessen@gmx.de>2011-11-30 21:07:53 +0100
commitdd99675f7223b0fb659e4146544969e2aa978fa9 (patch)
treed8e4376e9c1dfb74ec4e872119f8754e0d92bae6
parentb195fce0a47932775dfd47159c6f40509318dbaf (diff)
downloadforums-dd99675f7223b0fb659e4146544969e2aa978fa9.tar
forums-dd99675f7223b0fb659e4146544969e2aa978fa9.tar.gz
forums-dd99675f7223b0fb659e4146544969e2aa978fa9.tar.bz2
forums-dd99675f7223b0fb659e4146544969e2aa978fa9.tar.xz
forums-dd99675f7223b0fb659e4146544969e2aa978fa9.zip
[ticket/10345] Document behaviour for floating numbers on phpbb_get_plural_form
The numbers are floored by casting to int. PHPBB3-10345
-rw-r--r--phpBB/includes/functions.php2
-rw-r--r--phpBB/includes/session.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 762676309c..901caa6f09 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4186,7 +4186,7 @@ function phpbb_optionset($bit, $set, $data)
* For some languages this is not as simple as for English.
*
* @param $rule int ID of the plural rule we want to use, see http://wiki.phpbb.com/Plural_Rules#Plural_Rules
-* @param $number int|float The number we want to get the plural case for
+* @param $number int|float The number we want to get the plural case for. Float numbers are floored.
* @return int The plural-case we need to use for the number plural-rule combination
*/
function phpbb_get_plural_form($rule, $number)
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index eb84cd81fe..808d1a4a7f 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -1914,7 +1914,7 @@ class user extends session
* Determine which plural form we should use.
* For some languages this is not as simple as for English.
*
- * @param $number int|float The number we want to get the plural case for
+ * @param $number int|float The number we want to get the plural case for. Float numbers are floored.
* @param $force_rule mixed False to use the plural rule of the language package
* or an integer to force a certain plural rule
* @return int The plural-case we need to use for the number plural-rule combination