diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/page/main.php | 2 | ||||
-rw-r--r-- | system/user/main.php | 2 |
2 files changed, 2 insertions, 2 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'] ]); 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() ]); |