mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/10345] Use the plural function in some more places.
I added two function avatar_explanation_string() and avatar_error_wrong_size() for easier handling of the "pixels"-languages, as they are used quite often. PHPBB3-10345
This commit is contained in:
committed by
Oleg Pudeyev
parent
88ae40a4b1
commit
179662e949
@@ -427,7 +427,13 @@ class filespec
|
||||
|
||||
if (!$this->upload->valid_dimensions($this))
|
||||
{
|
||||
$this->error[] = sprintf($user->lang[$this->upload->error_prefix . 'WRONG_SIZE'], $this->upload->min_width, $this->upload->min_height, $this->upload->max_width, $this->upload->max_height, $this->width, $this->height);
|
||||
$this->error[] = $user->lang($this->upload->error_prefix . 'WRONG_SIZE',
|
||||
$user->lang('PIXELS', (int) $this->upload->min_width),
|
||||
$user->lang('PIXELS', (int) $this->upload->min_height),
|
||||
$user->lang('PIXELS', (int) $this->upload->max_width),
|
||||
$user->lang('PIXELS', (int) $this->upload->max_height),
|
||||
$user->lang('PIXELS', (int) $this->width),
|
||||
$user->lang('PIXELS', (int) $this->height));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user