mirror of
https://github.com/phpbb/phpbb.git
synced 2025-10-05 04:01:49 +02:00
[ticket/17548] Suppress filesize errors in storage_track migration
If the file size could not be retrieved right now it will be set to 0 PHPBB-17548
This commit is contained in:
@@ -130,14 +130,14 @@ class storage_track extends container_aware_migration
|
|||||||
{
|
{
|
||||||
$files[] = [
|
$files[] = [
|
||||||
'file_path' => $row['physical_filename'],
|
'file_path' => $row['physical_filename'],
|
||||||
'filesize' => filesize($this->phpbb_root_path . $this->config['storage\\attachment\\config\\path'] . '/' . $row['physical_filename']),
|
'filesize' => @filesize($this->phpbb_root_path . $this->config['storage\\attachment\\config\\path'] . '/' . $row['physical_filename']),
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($row['thumbnail'] == 1)
|
if ($row['thumbnail'] == 1)
|
||||||
{
|
{
|
||||||
$files[] = [
|
$files[] = [
|
||||||
'file_path' => 'thumb_' . $row['physical_filename'],
|
'file_path' => 'thumb_' . $row['physical_filename'],
|
||||||
'filesize' => filesize($this->phpbb_root_path . $this->config['storage\\attachment\\config\\path'] . '/thumb_' . $row['physical_filename']),
|
'filesize' => @filesize($this->phpbb_root_path . $this->config['storage\\attachment\\config\\path'] . '/thumb_' . $row['physical_filename']),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@ class storage_track extends container_aware_migration
|
|||||||
{
|
{
|
||||||
$files[] = [
|
$files[] = [
|
||||||
'file_path' => $row['filename'],
|
'file_path' => $row['filename'],
|
||||||
'filesize' => filesize($this->phpbb_root_path . $this->config['storage\\backup\\config\\path'] . '/' . $row['filename']),
|
'filesize' => @filesize($this->phpbb_root_path . $this->config['storage\\backup\\config\\path'] . '/' . $row['filename']),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (count($files) >= self::BATCH_SIZE)
|
if (count($files) >= self::BATCH_SIZE)
|
||||||
|
Reference in New Issue
Block a user