@@ -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