mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10345] Remove doubled check for valid plural rule
PHPBB3-10345
This commit is contained in:
parent
b790d2e283
commit
b195fce0a4
1 changed files with 0 additions and 4 deletions
|
@ -1925,10 +1925,6 @@ class user extends session
|
||||||
|
|
||||||
// Default to English system
|
// Default to English system
|
||||||
$plural_rule = ($force_rule !== false) ? $force_rule : ((isset($this->lang['PLURAL_RULE'])) ? $this->lang['PLURAL_RULE'] : 1);
|
$plural_rule = ($force_rule !== false) ? $force_rule : ((isset($this->lang['PLURAL_RULE'])) ? $this->lang['PLURAL_RULE'] : 1);
|
||||||
if ($plural_rule > 15 || $plural_rule < 0)
|
|
||||||
{
|
|
||||||
trigger_error('INVALID_PLURAL_RULE');
|
|
||||||
}
|
|
||||||
|
|
||||||
return phpbb_get_plural_form($plural_rule, $number);
|
return phpbb_get_plural_form($plural_rule, $number);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue