Фикс авторегистрации торрента git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@103 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
nanosimbiot 2011-07-13 22:15:11 +00:00
commit 83de1f5bfa
2 changed files with 3 additions and 3 deletions

View file

@ -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',

View file

@ -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');
}