From f343f38f9663a5f6e3d071e928d4605d9a9d5878 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 26 Oct 2023 16:05:42 +0700 Subject: [PATCH] Added $lang['BT_UNREGISTERED_ALREADY'] lang key (#994) --- library/language/source/main.php | 1 + src/Legacy/Torrent.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/library/language/source/main.php b/library/language/source/main.php index a4f90a7ef..3a9e6e4fa 100644 --- a/library/language/source/main.php +++ b/library/language/source/main.php @@ -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 registered'; $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

Now you need to download your torrent 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]

must be %s'; $lang['PASSKEY_ERR_TOR_NOT_REG'] = 'Could not add passkey

Torrent not registered on tracker'; diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index c994a20e3..4fcd032ec 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -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']); }