diff --git a/upload/attach_mod/displaying_torrent.php b/upload/attach_mod/displaying_torrent.php
index 8c7ec914a..ffc0e8fec 100644
--- a/upload/attach_mod/displaying_torrent.php
+++ b/upload/attach_mod/displaying_torrent.php
@@ -2,7 +2,7 @@
if (!defined('IN_PHPBB')) die(basename(__FILE__));
-global $bb_cfg, $t_data, $poster_id, $is_auth, $dl_link_css, $dl_status_css;
+global $bb_cfg, $t_data, $poster_id, $is_auth, $dl_link_css, $dl_status_css, $lang, $images;
$change_peers_bgr_over = true;
$bgr_class_1 = 'row1';
@@ -15,7 +15,7 @@ $peers_overflow_div_height = '400px';
$peers_div_style_normal = 'padding: 3px;';
$peers_div_style_overflow = "padding: 6px; height: $peers_overflow_div_height; overflow: auto; border: 1px inset;";
$s_last_seed_date_format = 'Y-m-d';
-$upload_image = '
';
+$upload_image = '
';
$peers_cnt = $seed_count = 0;
$seeders = $leechers = '';
diff --git a/upload/config.php b/upload/config.php
index 33e3cfac4..7da0da9c8 100644
--- a/upload/config.php
+++ b/upload/config.php
@@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
// Increase number of revision after update
$bb_cfg['tp_version'] = '2.5 Beta';
-$bb_cfg['tp_release_state'] = 'R465';
-$bb_cfg['tp_release_date'] = '21-10-2012';
+$bb_cfg['tp_release_state'] = 'R466';
+$bb_cfg['tp_release_date'] = '25-10-2012';
// Database
$charset = 'utf8';
diff --git a/upload/includes/report_hack/report_privmsg.php b/upload/includes/report_hack/report_privmsg.php
index 763a0da6e..d4f9324cf 100644
--- a/upload/includes/report_hack/report_privmsg.php
+++ b/upload/includes/report_hack/report_privmsg.php
@@ -232,7 +232,7 @@ class report_privmsg extends report_module
function _subject_details_prepare(&$message, &$subject, $row)
{
global $bb_cfg, $userdata, $datastore;
- include(INC_DIR . "bbcode.php");
+ require_once(INC_DIR . "bbcode.php");
//
// If the board has HTML off but the post has HTML
diff --git a/upload/search.php b/upload/search.php
index 661ad166d..6895ed34d 100644
--- a/upload/search.php
+++ b/upload/search.php
@@ -818,7 +818,7 @@ if ($items_display)
'DL_CONTROLS' => ($dl_search && $dl_user_id_val == $user_id),
'DL_ACTION' => 'dl_list.php',
- 'MY_POSTS' => ($my_posts && $user->id == $poster_id_val),
+ 'MY_POSTS' => (!$post_mode && $my_posts && $user->id == $poster_id_val),
));
print_page('search_results.tpl');