Форумы / Cotonti / Bugs / Size of files

Macik
#1 17.10.2012 00:04

Not very tidy.

file_size_2012-10-17_03-57.png

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F
Dayver
#2 17.10.2012 00:49

/modules/page/inc/page.functions.php

---->Your_pick--->'FILE_SIZE' => $page_data['page_size'] / 1024, // in KiB; deprecated but kept for compatibility
'FILE_SIZE_BYTES' => $page_data['page_size'],
---->Good---------->'FILE_SIZE_READABLE' => cot_build_filesize($page_data['page_size'], 1),

Pavlo Tkachenko aka Dayver
Trustmaster
#3 17.10.2012 04:41

The main problem is that kB have been replaced by bytes by default but existing file sizes have not been converted in the database...

May the Source be with you!