diff options
author | Thomas Lange <code@nerdmind.de> | 2017-03-01 07:08:30 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-03-01 07:08:30 +0100 |
commit | 2b02fbd853e1c7223a8100e303140579ab240bba (patch) | |
tree | 8eeb69204c34d687bda443ff36348f86c507dd49 /system/page/main.php | |
parent | ce094907977fc18e93fcbf90a97e4160ce8eb65f (diff) | |
download | blog-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/page/main.php')
-rw-r--r-- | system/page/main.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/page/main.php b/system/page/main.php index ae0ed11..4eb59ee 100644 --- a/system/page/main.php +++ b/system/page/main.php @@ -46,7 +46,7 @@ try { $MainTemplate->set('HTML', $PageTemplate); $MainTemplate->set('HEAD', [ 'NAME' => $page_data['ATTR']['NAME'], - 'DESC' => cut(removeLineBreaksAndTabs(removeHTML($Page->getHTML()), ' '), Application::get('PAGE.DESCRIPTION_SIZE')), + 'DESC' => cut(removeLineBreaksAndTabs(removeHTML($page_data['BODY']['HTML']), ' '), Application::get('PAGE.DESCRIPTION_SIZE')), 'PERM' => $page_data['URL'], 'OG_IMAGES' => $page_data['FILE']['LIST'] ]); |