Remove specification of filesize from gallery image exports
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 3 Dec 2020 11:47:40 +0000 (12:47 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 3 Dec 2020 11:47:40 +0000 (12:47 +0100)
The filesize is automatically calculated by the gallery.

files/lib/system/exporter/VB3or4xExporter.class.php
files/lib/system/exporter/VB5xExporter.class.php
files/lib/system/exporter/WBB3xExporter.class.php
files/lib/system/exporter/WBB4xExporter.class.php
files/lib/system/exporter/XF2xExporter.class.php

index 2798892379eeacce91bc5f83c58ba45be7449eaa..28c3ddbf92eb03d9223a53e0d62a77bc5a8ac822 100644 (file)
@@ -1678,7 +1678,6 @@ class VB3or4xExporter extends AbstractExporter {
                                        'description' => '',
                                        'filename' => StringUtil::decodeHTML(isset($row['filename']) ? $row['filename'] : ''),
                                        'fileExtension' => $row['extension'],
-                                       'filesize' => $row['filesize'],
                                        'uploadTime' => $row['dateline'],
                                        'creationTime' => $row['dateline'],
                                        'width' => $row['width'],
index 2fb18cf3ec7f4f35f512f68be3c1c40cb4e9b171..c6fec644aa31fcd7d311b3bad8786b7e4cfb8cd6 100644 (file)
@@ -1294,7 +1294,6 @@ class VB5xExporter extends AbstractExporter {
                                        'albumID' => $row['parentid'],
                                        'title' => $row['title'],
                                        'description' => ($row['title'] != $row['caption'] ? $row['caption'] : ''),
-                                       'filesize' => filesize($file),
                                        'uploadTime' => $row['created'],
                                ], ['fileLocation' => $file]);
                        }
index 818ba9d789a7d56b52af41c224846d41b8c96549..01e220271e08c331dd48a025b8f3df454769aa55 100644 (file)
@@ -2124,7 +2124,6 @@ class WBB3xExporter extends AbstractExporter {
                                'description' => $row['description'],
                                'filename' => $row['filename'],
                                'fileExtension' => $row['fileExtension'],
-                               'filesize' => $row['filesize'],
                                'comments' => $row['comments'],
                                'views' => $row['views'],
                                'uploadTime' => $row['uploadTime'],
index e3d94f58d3ecae9d8a39f3096c9c72d0dacf66da..7f87be7e350a05416381cb51444718502c0ce3c1 100644 (file)
@@ -1902,7 +1902,6 @@ class WBB4xExporter extends AbstractExporter {
                                'filename' => $row['filename'],
                                'fileExtension' => $row['fileExtension'],
                                'fileHash' => $row['fileHash'],
-                               'filesize' => $row['filesize'],
                                'comments' => $row['comments'],
                                'views' => $row['views'],
                                'cumulativeLikes' => $row['cumulativeLikes'],
index 5408ed104d6305619e4429d42c838e096f0df2de..f69b0ce8e7bb3381ef5fb5874863716f09b57ada 100644 (file)
@@ -1393,7 +1393,6 @@ class XF2xExporter extends AbstractExporter {
                                'description' => $row['description'],
                                'filename' => $row['filename'],
                                'fileExtension' => pathinfo($row['filename'], PATHINFO_EXTENSION),
-                               'filesize' => $row['file_size'],
                                'views' => $row['view_count'],
                                'uploadTime' => $row['media_date'],
                                'creationTime' => $row['media_date'],