mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r38
исправлена ошибка при регистрации торрента git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@38 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
6b412006af
commit
df54ad3fd9
1 changed files with 3 additions and 7 deletions
|
@ -263,7 +263,7 @@ function tracker_register ($attach_id, $mode = '')
|
||||||
|
|
||||||
if (!$torrent = get_torrent_info($attach_id))
|
if (!$torrent = get_torrent_info($attach_id))
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, 'Torrent not found');
|
bb_die('Torrent not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
$post_id = $torrent['post_id'];
|
$post_id = $torrent['post_id'];
|
||||||
|
@ -756,9 +756,7 @@ function torrent_error_exit ($message)
|
||||||
{
|
{
|
||||||
global $reg_mode, $return_message, $lang;
|
global $reg_mode, $return_message, $lang;
|
||||||
|
|
||||||
$err_code = GENERAL_ERROR;
|
|
||||||
$msg = '';
|
$msg = '';
|
||||||
|
|
||||||
if (isset($reg_mode) && ($reg_mode == 'request' || $reg_mode == 'newtopic'))
|
if (isset($reg_mode) && ($reg_mode == 'request' || $reg_mode == 'newtopic'))
|
||||||
{
|
{
|
||||||
if (isset($return_message))
|
if (isset($return_message))
|
||||||
|
@ -766,12 +764,10 @@ function torrent_error_exit ($message)
|
||||||
$msg .= $return_message .'<br /><br /><hr /><br />';
|
$msg .= $return_message .'<br /><br /><hr /><br />';
|
||||||
}
|
}
|
||||||
$msg .= '<b>'. $lang['BT_REG_FAIL'] .'</b><br /><br />';
|
$msg .= '<b>'. $lang['BT_REG_FAIL'] .'</b><br /><br />';
|
||||||
|
|
||||||
$err_code = GENERAL_MESSAGE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$msg .= $message;
|
$msg .= $message;
|
||||||
message_die($err_code, $msg);
|
|
||||||
|
bb_die($msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
// bdecode: based on OpenTracker [http://whitsoftdev.com/opentracker]
|
// bdecode: based on OpenTracker [http://whitsoftdev.com/opentracker]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue