Next renamed function

This commit is contained in:
Michael 2020-10-29 09:03:06 +00:00
parent e3df7eb131
commit 56fe1400a7

View file

@ -89,7 +89,7 @@ class Processor
* @param array $attachment
* @return void
*/
private static function storeAttachment(int $uriid, array $attachment)
private static function storeAttachmentAsMedia(int $uriid, array $attachment)
{
if (empty($attachment['url'])) {
return;
@ -152,7 +152,7 @@ class Processor
$item['body'] = PageInfo::appendDataToBody($item['body'], $data);
break;
default:
self::storeAttachment($item['uri-id'], $attach);
self::storeAttachmentAsMedia($item['uri-id'], $attach);
$filetype = strtolower(substr($attach['mediaType'], 0, strpos($attach['mediaType'], '/')));
if ($filetype == 'image') {