mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10345] Fix documentation on the new function and the switch
Also do not min/max the value, but throw an error on an invalid Plural rule. PHPBB3-10345
This commit is contained in:
committed by
Oleg Pudeyev
parent
757fcd3e63
commit
f16d72fcfb
@@ -51,11 +51,11 @@ class phpbb_user_lang_test extends phpbb_test_case
|
||||
$this->assertEquals($user->lang('ARRY', 2), '2 posts');
|
||||
$this->assertEquals($user->lang('ARRY', 123), '123 posts');
|
||||
|
||||
// Bug PHPBB3-9949
|
||||
// ticket PHPBB3-9949
|
||||
$this->assertEquals($user->lang('ARRY', 1, 2), '1 post');
|
||||
$this->assertEquals($user->lang('ARRY', 1, 's', 2), '1 post');
|
||||
|
||||
// Bug PHPBB3-10345
|
||||
// ticket PHPBB3-10345
|
||||
$user = new user;
|
||||
$user->lang = array(
|
||||
'PLURAL_RULE' => 13,
|
||||
|
Reference in New Issue
Block a user