From 2061d247eda3168559b185d35f6852da8a267892 Mon Sep 17 00:00:00 2001 From: pherum83 Date: Sat, 5 Nov 2011 08:23:14 +0000 Subject: [PATCH] r304 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit фикс запрета на скачивание в топике git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@304 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/attach_mod/displaying_torrent.php | 4 +--- upload/config.php | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/upload/attach_mod/displaying_torrent.php b/upload/attach_mod/displaying_torrent.php index 553482447..a04f93a46 100644 --- a/upload/attach_mod/displaying_torrent.php +++ b/upload/attach_mod/displaying_torrent.php @@ -132,8 +132,6 @@ if ($tor_auth) { $template->assign_vars(array( 'TOR_CONTROLS' => true, - 'TOR_ACTION' => "torrent.php", - 'TOR_STATUS' => "torstatus.php", 'TOR_ATTACH_ID' => $attach_id, )); @@ -213,7 +211,7 @@ if ($tor_reged && $tor_info) 'DOWNLOAD_NAME' => $display_name, 'TRACKER_LINK' => $tracker_link, 'ATTACH_ID' => $attach_id, - 'TOR_FROZEN' => ($tor_info['tor_status'] == TOR_STATUS_FROZEN || $tor_info['tor_status'] == 3 || $tor_info['tor_status'] == 4 || $tor_info['tor_status'] == 7), + 'TOR_FROZEN' => isset($bb_cfg['tor_frozen'][$tor_info['tor_status']]), 'TOR_SILVER_GOLD' => $tor_type, // torrent status mod diff --git a/upload/config.php b/upload/config.php index c71da5c44..0b4f86308 100644 --- a/upload/config.php +++ b/upload/config.php @@ -53,8 +53,8 @@ $bb_cfg = $tr_cfg = $page_cfg = array(); // Increase number of revision after update $bb_cfg['tp_version'] = '2.2 Beta'; -$bb_cfg['tp_release_state'] = 'R303'; -$bb_cfg['tp_release_date'] = '03-11-2011'; +$bb_cfg['tp_release_state'] = 'R304'; +$bb_cfg['tp_release_date'] = '05-11-2011'; // Database $charset = 'utf8';