Skip to content

Commit 3aa3ea8

Browse files
committed
#22355
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8420 89ea8834-ac86-4346-8a33-228a782c2dd0
1 parent 181cbcd commit 3aa3ea8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

phpBB/includes/functions_content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count,
822822
}
823823

824824
$filesize = $attachment['filesize'];
825-
$size_lang = ($filesize >= 1048576) ? $user->lang['MB'] : ( ($filesize >= 1024) ? $user->lang['KB'] : $user->lang['BYTES'] );
825+
$size_lang = ($filesize >= 1048576) ? $user->lang['MIB'] : (($filesize >= 1024) ? $user->lang['KIB'] : $user->lang['BYTES']);
826826
$filesize = get_formatted_filesize($filesize, false);
827827

828828
$comment = bbcode_nl2br(censor_text($attachment['attach_comment']));

phpBB/includes/functions_upload.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ function additional_checks()
386386
// Filesize is too big or it's 0 if it was larger than the maxsize in the upload form
387387
if ($this->upload->max_filesize && ($this->get('filesize') > $this->upload->max_filesize || $this->filesize == 0))
388388
{
389-
$size_lang = ($this->upload->max_filesize >= 1048576) ? $user->lang['MB'] : (($this->upload->max_filesize >= 1024) ? $user->lang['KB'] : $user->lang['BYTES'] );
389+
$size_lang = ($this->upload->max_filesize >= 1048576) ? $user->lang['MIB'] : (($this->upload->max_filesize >= 1024) ? $user->lang['KIB'] : $user->lang['BYTES'] );
390390
$max_filesize = get_formatted_filesize($this->upload->max_filesize, false);
391391

392392
$this->error[] = sprintf($user->lang[$this->upload->error_prefix . 'WRONG_FILESIZE'], $max_filesize, $size_lang);
@@ -777,7 +777,7 @@ function assign_internal_error($errorcode)
777777
break;
778778

779779
case 2:
780-
$size_lang = ($this->max_filesize >= 1048576) ? $user->lang['MB'] : (($this->max_filesize >= 1024) ? $user->lang['KB'] : $user->lang['BYTES'] );
780+
$size_lang = ($this->max_filesize >= 1048576) ? $user->lang['MIB'] : (($this->max_filesize >= 1024) ? $user->lang['KIB'] : $user->lang['BYTES']);
781781
$max_filesize = get_formatted_filesize($this->max_filesize, false);
782782

783783
$error = sprintf($user->lang[$this->error_prefix . 'WRONG_FILESIZE'], $max_filesize, $size_lang);
@@ -813,7 +813,7 @@ function common_checks(&$file)
813813
// Filesize is too big or it's 0 if it was larger than the maxsize in the upload form
814814
if ($this->max_filesize && ($file->get('filesize') > $this->max_filesize || $file->get('filesize') == 0))
815815
{
816-
$size_lang = ($this->max_filesize >= 1048576) ? $user->lang['MB'] : (($this->max_filesize >= 1024) ? $user->lang['KB'] : $user->lang['BYTES'] );
816+
$size_lang = ($this->max_filesize >= 1048576) ? $user->lang['MIB'] : (($this->max_filesize >= 1024) ? $user->lang['KIB'] : $user->lang['BYTES']);
817817
$max_filesize = get_formatted_filesize($this->max_filesize, false);
818818

819819
$file->error[] = sprintf($user->lang[$this->error_prefix . 'WRONG_FILESIZE'], $max_filesize, $size_lang);

0 commit comments

Comments
 (0)