|
@@ -4,9 +4,9 @@ |
|
|
block discarded – undo |
|
4
|
4
|
|
|
5
|
5
|
use Flynt\Api; |
|
6
|
6
|
|
|
7
|
|
-add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function ($data) { |
|
|
7
|
+add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function($data) { |
|
8
|
8
|
if (!empty($data['items'])) { |
|
9
|
|
- $data['items'] = array_map(function ($item) { |
|
|
9
|
+ $data['items'] = array_map(function($item) { |
|
10
|
10
|
if ($item['itemType'] === 'itemFile') { |
|
11
|
11
|
$fileSize = filesize(get_attached_file($item['file']['id'])); |
|
12
|
12
|
$item['file']['fileSize'] = size_format($fileSize); |
Please login to merge, or discard this patch.