В фалйе posting.php находим:
Код: Выделить всё
}
if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)
{
$post_data['post_subject'] = ((strpos($post_data['post_subject'], 'Re: ') !== 0) ? 'Re: ' : '') . censor_text($post_data['post_subject']);
Код: Выделить всё
//-----------//
if($post_data['post_attachment'])
{
$ext_test='torrent';
$query2=$db->sql_query("SELECT a.post_msg_id, a.extension FROM ".ATTACHMENTS_TABLE." a WHERE a.post_msg_id = '$post_id' AND a.extension = 'torrent'");
while($row=$db->sql_fetchrow($query2))
{
$message_parser->message = '[quote="' . $post_data['quote_username'] . '"]Re: ' . $post_data['post_subject'] . "[/quote]\n";
}
$db->sql_freeresult($query2);
}
//-----------//