From 83de1f5bfae0370d27cfd60edab136c7198c03e2 Mon Sep 17 00:00:00 2001 From: nanosimbiot Date: Wed, 13 Jul 2011 22:15:11 +0000 Subject: [PATCH] r103 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Фикс авторегистрации торрента git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@103 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/config.php | 4 ++-- upload/posting.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/upload/config.php b/upload/config.php index def09bf01..eba9444cb 100644 --- a/upload/config.php +++ b/upload/config.php @@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1; // Increase number of revision after update $bb_cfg['tp_version'] = '2.0.2'; -$bb_cfg['tp_release_state'] = 'TP II r102'; +$bb_cfg['tp_release_state'] = 'TP II r103'; $bb_cfg['tp_release_date'] = '14-07-2011'; $bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger @@ -92,7 +92,7 @@ $bb_cfg['cache']['engines'] = array( ); // Datastore -$bb_cfg['datastore_type'] = 'filecache'; // Available datastore types: mysql, sqlite, memcache, filecache +$bb_cfg['datastore_type'] = 'filecache'; // Available datastore types: mysql, sqlite, memcache, redis, filecache $bb_cfg['datastore']['sqlite'] = array( 'db_file_path' => $bb_cfg['cache']['db_dir'] . '/bb_datastore.sqlite.db', diff --git a/upload/posting.php b/upload/posting.php index 434016390..8a7a99173 100644 --- a/upload/posting.php +++ b/upload/posting.php @@ -535,7 +535,7 @@ else if ( ($submit || $confirm) && !$topic_has_new_posts ) if (defined('TORRENT_ATTACH_ID') && $bb_cfg['bt_newtopic_auto_reg'] && !$error_msg) { include(INC_DIR .'functions_torrent.php'); - if(!get_torrent_info(TORRENT_ATTACH_ID)) + if(!DB()->fetch_row("SELECT attach_id FROM ". BB_BT_TORRENTS ." WHERE attach_id = ". TORRENT_ATTACH_ID)) { tracker_register(TORRENT_ATTACH_ID, 'newtopic'); }