diff options
author | Thomas Lange <code@nerdmind.de> | 2017-04-24 01:37:55 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-04-24 01:37:55 +0200 |
commit | 076c34c4f25c5695059d37e1bb6a262f6b7eedb6 (patch) | |
tree | 337c021850e6a6065d338305e127950560f74d23 /core/include/post/main.php | |
parent | 1ab7ed73b0ea9d1f8597cf9b87bf272a7e6b99e6 (diff) | |
download | blog-076c34c4f25c5695059d37e1bb6a262f6b7eedb6.tar.gz blog-076c34c4f25c5695059d37e1bb6a262f6b7eedb6.tar.xz blog-076c34c4f25c5695059d37e1bb6a262f6b7eedb6.zip |
Nested function calls for generating the meta description are removed and a function was added to perform this task.
Diffstat (limited to 'core/include/post/main.php')
-rw-r--r-- | core/include/post/main.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/include/post/main.php b/core/include/post/main.php index 46937f3..dc3cbdc 100644 --- a/core/include/post/main.php +++ b/core/include/post/main.php @@ -47,7 +47,7 @@ try { $MainTemplate->set('HTML', $PostTemplate); $MainTemplate->set('HEAD', [ 'NAME' => $post_data['ATTR']['NAME'], - 'DESC' => cut(removeLineBreaksAndTabs(removeHTML($post_data['BODY']['HTML']), ' '), Application::get('POST.DESCRIPTION_SIZE')), + 'DESC' => description($post_data['BODY']['HTML'], Application::get('POST.DESCRIPTION_SIZE')), 'PERM' => $post_data['URL'], 'OG_IMAGES' => $post_data['FILE']['LIST'] ]); |