mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-01 15:48:12 +03:00
Перевод в килобайты
This commit is contained in:
parent
d13ec04c92
commit
b36d0ab90d
|
@ -259,7 +259,7 @@ class ModuleMedia extends ModuleORM
|
|||
* Проверка на размер файла
|
||||
*/
|
||||
$iMaxSizeKb = $this->GetConfigParam('max_size', $sTargetType);
|
||||
if ($aFile['size'] > $iMaxSizeKb) {
|
||||
if ($aFile['size'] > $iMaxSizeKb * 1024) {
|
||||
return $this->Lang_Get('media.error.too_large', array('size' => $iMaxSizeKb));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue