Added $lang['BT_UNREGISTERED_ALREADY'] lang key (#994)

This commit is contained in:
Roman Kelesidis 2023-10-26 16:05:42 +07:00 committed by GitHub
commit f343f38f96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -1061,6 +1061,7 @@ $lang['BT_REG_FAIL'] = 'Could not register torrent on tracker';
$lang['BT_REG_FAIL_SAME_HASH'] = 'Another torrent with same info_hash already <a href="%s"><b>registered</b></a>';
$lang['BT_UNREG_FROM_TRACKER'] = 'Remove from tracker';
$lang['BT_UNREGISTERED'] = 'Torrent unregistered';
$lang['BT_UNREGISTERED_ALREADY'] = 'Torrent already unregistered';
$lang['BT_REGISTERED'] = 'Torrent registered on tracker<br /><br />Now you need to <a href="%s"><b>download your torrent</b></a> and run it using your BitTorrent client choosing the folder with the original files you\'re sharing as the download path';
$lang['INVALID_ANN_URL'] = 'Invalid Announce URL [%s]<br /><br />must be <b>%s</b>';
$lang['PASSKEY_ERR_TOR_NOT_REG'] = 'Could not add passkey<br /><br />Torrent not registered on tracker';

View file

@ -107,7 +107,7 @@ class Torrent
bb_die($lang['TOR_NOT_FOUND']);
}
if (!$torrent['tracker_status']) {
bb_die('Torrent already unregistered');
bb_die($lang['BT_UNREGISTERED_ALREADY']);
}
self::torrent_auth_check($forum_id, $torrent['poster_id']);
}