This commit is contained in:
Daisuke
2020-04-15 17:52:06 -05:00
parent ab519513de
commit 07650486b3
2 changed files with 14 additions and 17 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']);