From 076c34c4f25c5695059d37e1bb6a262f6b7eedb6 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 24 Apr 2017 01:37:55 +0200 Subject: Nested function calls for generating the meta description are removed and a function was added to perform this task. --- core/include/user/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/include/user/main.php') diff --git a/core/include/user/main.php b/core/include/user/main.php index 7944f1f..79e0ea9 100644 --- a/core/include/user/main.php +++ b/core/include/user/main.php @@ -62,7 +62,7 @@ try { $MainTemplate->set('HTML', $UserTemplate); $MainTemplate->set('HEAD', [ 'NAME' => $user_data['ATTR']['FULLNAME'], - 'DESC' => cut(removeLineBreaksAndTabs(removeHTML($user_data['BODY']['HTML']), ' '), Application::get('USER.DESCRIPTION_SIZE')), + 'DESC' => description($user_data['BODY']['HTML'], Application::get('USER.DESCRIPTION_SIZE')), 'PERM' => $User->getURL(), 'OG_IMAGES' => $User->getFiles() ]); -- cgit v1.2.3