From df54ad3fd9b38a59ab06110021f3a96ef711ea58 Mon Sep 17 00:00:00 2001 From: nanosimbiot Date: Tue, 28 Jun 2011 19:49:14 +0000 Subject: [PATCH] r38 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit исправлена ошибка при регистрации торрента git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@38 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/includes/functions_torrent.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/upload/includes/functions_torrent.php b/upload/includes/functions_torrent.php index 5accada57..5d95dbcd3 100644 --- a/upload/includes/functions_torrent.php +++ b/upload/includes/functions_torrent.php @@ -263,7 +263,7 @@ function tracker_register ($attach_id, $mode = '') if (!$torrent = get_torrent_info($attach_id)) { - message_die(GENERAL_ERROR, 'Torrent not found'); + bb_die('Torrent not found'); } $post_id = $torrent['post_id']; @@ -756,9 +756,7 @@ function torrent_error_exit ($message) { global $reg_mode, $return_message, $lang; - $err_code = GENERAL_ERROR; $msg = ''; - if (isset($reg_mode) && ($reg_mode == 'request' || $reg_mode == 'newtopic')) { if (isset($return_message)) @@ -766,12 +764,10 @@ function torrent_error_exit ($message) $msg .= $return_message .'



'; } $msg .= ''. $lang['BT_REG_FAIL'] .'

'; - - $err_code = GENERAL_MESSAGE; } - $msg .= $message; - message_die($err_code, $msg); + + bb_die($msg); } // bdecode: based on OpenTracker [http://whitsoftdev.com/opentracker]