Zeile 50 | Zeile 50 |
---|
// Get the thread details from the database. $thread = get_thread($mybb->input['tid']);
|
// Get the thread details from the database. $thread = get_thread($mybb->input['tid']);
|
| if(!$thread || substr($thread['closed'], 0, 6) == "moved|") { error($lang->error_invalidthread); }
|
// Get thread prefix if there is one. $thread['threadprefix'] = '';
| // Get thread prefix if there is one. $thread['threadprefix'] = '';
|
Zeile 63 | Zeile 68 |
---|
$thread['threadprefix'] = $threadprefix['prefix'].' '; $thread['displayprefix'] = $threadprefix['displaystyle'].' '; }
|
$thread['threadprefix'] = $threadprefix['prefix'].' '; $thread['displayprefix'] = $threadprefix['displaystyle'].' '; }
|
}
if(substr($thread['closed'], 0, 6) == "moved|") { $thread['tid'] = 0;
| |
}
$reply_subject = $parser->parse_badwords($thread['subject']);
| }
$reply_subject = $parser->parse_badwords($thread['subject']);
|
Zeile 102 | Zeile 102 |
---|
}
// Make sure we are looking at a real thread here.
|
}
// Make sure we are looking at a real thread here.
|
if(!$thread || ($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
| if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
|
{ error($lang->error_invalidthread); }
| { error($lang->error_invalidthread); }
|