This commit is contained in:
Daisuke
2020-04-15 16:53:16 -05:00
parent 299c58692e
commit ab519513de
2 changed files with 9 additions and 9 deletions

View File

@ -333,12 +333,12 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) {
}
}
if ((empty($elem['media_attachments']) && $post['media'] == "") || (!(empty($elem['media_attachments']) && $post['media'] == "") && $user_settings['attach'] == "off")) {
$post['template'] = themes("get","templates/textpost.txt");
}
else {
//if ((empty($elem['media_attachments']) && $post['media'] == "") || (!(empty($elem['media_attachments']) && $post['media'] == "") && $user_settings['attach'] == "off")) {
//$post['template'] = themes("get","templates/textpost.txt");
//}
//else {
$post['template'] = themes("get","templates/post.txt");
}
//}
foreach ($post as $key => $value) {
$post['template'] = str_replace(":$key:", $value, $post['template']);