aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-21 18:42:21 +0200
committerThomas Lange <code@nerdmind.de>2021-06-21 18:42:21 +0200
commit93e84ae4bcf58ace1f714e248a7bc2067f784467 (patch)
tree838a96bef2b3f19bd780496c5098ee374458d7ba
parent55eaa1d7b47d11078bd441427cfe16483cf966f7 (diff)
downloadblog-93e84ae4bcf58ace1f714e248a7bc2067f784467.tar.gz
blog-93e84ae4bcf58ace1f714e248a7bc2067f784467.tar.xz
blog-93e84ae4bcf58ace1f714e248a7bc2067f784467.zip
Use function getMarkdownImageURLs
-rw-r--r--core/functions.php2
-rw-r--r--core/include/user/main.php2
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