Version 4.7.8

This commit is contained in:
Neo committed 2025-12-19 16:10:42 -08:00
1 parent 7b7404e741
commit fd22d99e69
688 files changed
+19814 -10890

No files matched your search

+12 -6
View File
@@ -4873,6 +4873,11 @@ class _Core extends \IPS\convert\Library
return $this->cachedFields[ $fieldId ];
}
/**
* @brief Store of field IDs to skip formatting
*/
protected $_skipFields = [];
/**
* Format Member Profile Field Content
*
@@ -4896,6 +4901,11 @@ class _Core extends \IPS\convert\Library
{
$id = $key;
}
if( \in_array( $id, $this->_skipFields ) )
{
continue;
}
try
{
@@ -4904,14 +4914,10 @@ class _Core extends \IPS\convert\Library
/* Make sure the field itself was not removed. */
$field = $this->_getField( $link );
}
catch( \OutOfRangeException $e )
catch( \OutOfRangeException | \UnderflowException $e )
{
/* Link does not exist so we cannot map */
continue;
}
catch( \UnderflowException $e )
{
/* Field does not exist */
$this->_skipFields[] = $id;
continue;
}
@@ -1128,17 +1128,13 @@ class _Downloads extends Core
else
{
$file = \IPS\File::create( 'downloads_Screenshots', $record['record_realname'], $record['file_data'], $container, TRUE, $record['file_path'] );
$file->thumbnailContainer = $container;
$record['record_location'] = (string) $file;
$record['record_thumb'] = (string) $file->thumbnail( 'downloads_Screenshots' );
$record['record_size'] = $file->filesize();
}
}
catch( \Exception $e )
{
$this->software->app->log( $e->getMessage(), __METHOD__, \IPS\convert\App::LOG_WARNING, ( $hasId ) ? $record['record_id'] : NULL );
continue;
}
catch( \ErrorException $e )
catch( \Exception | \ErrorException $e )
{
$this->software->app->log( $e->getMessage(), __METHOD__, \IPS\convert\App::LOG_WARNING, ( $hasId ) ? $record['record_id'] : NULL );
continue;