Fix plaintext function by partly reverting function removal

This commit is contained in:
Michael 2023-03-06 18:00:58 +00:00
parent c1686c486c
commit e0fe3bf77d
2 changed files with 178 additions and 1 deletions

View file

@ -132,7 +132,7 @@ class Plaintext
$body = BBCode::stripAbstract($body);
// At first look at data that is attached via "type-..." stuff
$post = BBCode::getAttachmentData($body, $item);
$post = BBCode::getAttachedData($body, $item);
if (($item['title'] != '') && ($post['text'] != '')) {
$post['text'] = trim($item['title'] . "\n\n" . $post['text']);