summaryrefslogtreecommitdiffstats
path: root/system/user
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-03-01 07:08:30 +0100
committerThomas Lange <code@nerdmind.de>2017-03-01 07:08:30 +0100
commit2b02fbd853e1c7223a8100e303140579ab240bba (patch)
tree8eeb69204c34d687bda443ff36348f86c507dd49 /system/user
parentce094907977fc18e93fcbf90a97e4160ce8eb65f (diff)
downloadblog-2b02fbd853e1c7223a8100e303140579ab240bba.tar.gz
blog-2b02fbd853e1c7223a8100e303140579ab240bba.tar.xz
blog-2b02fbd853e1c7223a8100e303140579ab240bba.zip
Prevent that the markdown parser have to parse the the content twice (by using an already existing array variable which already contains the parsed HTML).
Diffstat (limited to 'system/user')
-rw-r--r--system/user/main.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/user/main.php b/system/user/main.php
index 56d8239..79f4222 100644
--- a/system/user/main.php
+++ b/system/user/main.php
@@ -61,7 +61,7 @@ try {
$MainTemplate->set('HTML', $UserTemplate);
$MainTemplate->set('HEAD', [
'NAME' => $user_data['ATTR']['FULLNAME'],
- 'DESC' => cut(removeLineBreaksAndTabs(removeHTML($User->getHTML()), ' '), Application::get('USER.DESCRIPTION_SIZE')),
+ 'DESC' => cut(removeLineBreaksAndTabs(removeHTML($user_data['BODY']['HTML']), ' '), Application::get('USER.DESCRIPTION_SIZE')),
'PERM' => $User->getURL(),
'OG_IMAGES' => $User->getFiles()
]);