From 93e84ae4bcf58ace1f714e248a7bc2067f784467 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 21 Jun 2021 18:42:21 +0200 Subject: Use function getMarkdownImageURLs --- core/functions.php | 2 +- core/include/user/main.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/functions.php b/core/functions.php index 4befb19..4b3eabd 100644 --- a/core/functions.php +++ b/core/functions.php @@ -91,7 +91,7 @@ function generateItemTemplateData(Item $Item): array { 'NEXT' => FALSE, 'FILE' => [ - 'LIST' => $Item->getFiles() + 'LIST' => getMarkdownImageURLs($preparsed), ], 'BODY' => [ diff --git a/core/include/user/main.php b/core/include/user/main.php index 3b8b25a..34ec883 100644 --- a/core/include/user/main.php +++ b/core/include/user/main.php @@ -51,7 +51,7 @@ try { 'NAME' => $user_data['ATTR']['FULLNAME'], 'DESC' => description($user_data['BODY']['HTML'](), Application::get('USER.DESCRIPTION_SIZE')), 'PERM' => $user_data['URL'], - 'OG_IMAGES' => $User->getFiles() + 'OG_IMAGES' => $user_data['FILE']['LIST'] ]); # Get access to the current item data from main template -- cgit v1.2.3