From 7a629705ad676f87ce50147c6ed18f7e29923d5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 4 Feb 2022 10:06:22 +0100 Subject: [PATCH] Fix calls to ->getConfig() in XF2xExporter --- files/lib/system/exporter/XF2xExporter.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/lib/system/exporter/XF2xExporter.class.php b/files/lib/system/exporter/XF2xExporter.class.php index fceee65..6728c44 100644 --- a/files/lib/system/exporter/XF2xExporter.class.php +++ b/files/lib/system/exporter/XF2xExporter.class.php @@ -1656,7 +1656,7 @@ class XF2xExporter extends AbstractExporter $statement = $this->database->prepareStatement($sql); $statement->execute(\array_merge(['xfmg_media'], $conditionBuilder->getParameters())); while ($row = $statement->fetchArray()) { - $config = self::getConfig(); + $config = $this->getConfig(); $fileLocation = $this->fileSystemPath . $config['internalDataPath'] . '/attachments/' . \floor($row['data_id'] / 1000) . '/' . $row['data_id'] . '-' . $row['file_hash'] . '.data'; if (!\file_exists($fileLocation)) { @@ -1868,7 +1868,7 @@ class XF2xExporter extends AbstractExporter // file icon if (!empty($row['icon_date'])) { - $config = self::getConfig(); + $config = $this->getConfig(); $iconLocation = $this->fileSystemPath . $config['externalDataPath'] . '/resource_icons/' . \floor($row['resource_id'] / 1000) . '/' . $row['resource_id'] . '.jpg'; $imageData = @\getimagesize($iconLocation); @@ -1960,7 +1960,7 @@ class XF2xExporter extends AbstractExporter 'enableHtml' => 0, ]; if (empty($row['download_url'])) { - $config = self::getConfig(); + $config = $this->getConfig(); $fileLocation = $this->fileSystemPath . $config['internalDataPath'] . '/attachments/' . \floor($row['data_id'] / 1000) . '/' . $row['data_id'] . '-' . $row['file_hash'] . '.data'; $data['filesize'] = \filesize($fileLocation); @@ -2012,7 +2012,7 @@ class XF2xExporter extends AbstractExporter continue; } - $config = self::getConfig(); + $config = $this->getConfig(); $fileLocation = $this->fileSystemPath . $config['internalDataPath'] . '/attachments/' . \floor($row['data_id'] / 1000) . '/' . $row['data_id'] . '-' . $row['file_hash'] . '.data'; $data = [ @@ -2114,7 +2114,7 @@ class XF2xExporter extends AbstractExporter $statement = $this->database->prepareStatement($sql, $limit, $offset); $statement->execute([$type]); while ($row = $statement->fetchArray()) { - $config = self::getConfig(); + $config = $this->getConfig(); $fileLocation = $this->fileSystemPath . $config['internalDataPath'] . '/attachments/' . \floor($row['data_id'] / 1000) . '/' . $row['data_id'] . '-' . $row['file_hash'] . '.data'; $data = [ -- 2.20.1