From 31f9771ac32dacba517b73e0a90801d342b9a6a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 3 Dec 2020 12:47:40 +0100 Subject: [PATCH] Remove specification of filesize from gallery image exports The filesize is automatically calculated by the gallery. --- files/lib/system/exporter/VB3or4xExporter.class.php | 1 - files/lib/system/exporter/VB5xExporter.class.php | 1 - files/lib/system/exporter/WBB3xExporter.class.php | 1 - files/lib/system/exporter/WBB4xExporter.class.php | 1 - files/lib/system/exporter/XF2xExporter.class.php | 1 - 5 files changed, 5 deletions(-) diff --git a/files/lib/system/exporter/VB3or4xExporter.class.php b/files/lib/system/exporter/VB3or4xExporter.class.php index 2798892..28c3ddb 100644 --- a/files/lib/system/exporter/VB3or4xExporter.class.php +++ b/files/lib/system/exporter/VB3or4xExporter.class.php @@ -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'], diff --git a/files/lib/system/exporter/VB5xExporter.class.php b/files/lib/system/exporter/VB5xExporter.class.php index 2fb18cf..c6fec64 100644 --- a/files/lib/system/exporter/VB5xExporter.class.php +++ b/files/lib/system/exporter/VB5xExporter.class.php @@ -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]); } diff --git a/files/lib/system/exporter/WBB3xExporter.class.php b/files/lib/system/exporter/WBB3xExporter.class.php index 818ba9d..01e2202 100644 --- a/files/lib/system/exporter/WBB3xExporter.class.php +++ b/files/lib/system/exporter/WBB3xExporter.class.php @@ -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'], diff --git a/files/lib/system/exporter/WBB4xExporter.class.php b/files/lib/system/exporter/WBB4xExporter.class.php index e3d94f5..7f87be7 100644 --- a/files/lib/system/exporter/WBB4xExporter.class.php +++ b/files/lib/system/exporter/WBB4xExporter.class.php @@ -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'], diff --git a/files/lib/system/exporter/XF2xExporter.class.php b/files/lib/system/exporter/XF2xExporter.class.php index 5408ed1..f69b0ce 100644 --- a/files/lib/system/exporter/XF2xExporter.class.php +++ b/files/lib/system/exporter/XF2xExporter.class.php @@ -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'], -- 2.20.1