Update
This commit is contained in:
@ -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']);
|
||||
|
Reference in New Issue
Block a user