From c27173fb3f950a75b64e46ddb04fb8ab81402998 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 26 Oct 2023 18:16:48 +0700 Subject: [PATCH] Updated --- library/ajax/edit_user_profile.php | 2 +- library/includes/functions.php | 4 ++-- library/includes/functions_torrent.php | 2 +- library/includes/ucp/bonus.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/library/ajax/edit_user_profile.php b/library/ajax/edit_user_profile.php index d9d178ef..156bc92f 100644 --- a/library/ajax/edit_user_profile.php +++ b/library/ajax/edit_user_profile.php @@ -144,7 +144,7 @@ switch ($field) require(INC_DIR .'functions_torrent.php'); if (!generate_passkey($user_id, true)) { - $this->ajax_die($lang['PASSKEY_ERR_EMPTY']); + $this->ajax_die(sprintf($lang['PASSKEY_ERR_EMPTY'], PROFILE_URL . $user_id)); } $btu = get_bt_userdata($user_id); } diff --git a/library/includes/functions.php b/library/includes/functions.php index 0003f686..b2695362 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1246,7 +1246,7 @@ function show_bt_userdata ($user_id) require_once(INC_DIR .'functions_torrent.php'); if (!generate_passkey($user_id, true)) { - bb_die($lang['PASSKEY_ERR_EMPTY']); + bb_die(sprintf($lang['PASSKEY_ERR_EMPTY'], PROFILE_URL . $user_id)); } $btu = get_bt_userdata($user_id); } @@ -2596,7 +2596,7 @@ function create_magnet ($infohash, $auth_key, $name) require_once(INC_DIR .'functions_torrent.php'); if (!$passkey = generate_passkey($userdata['user_id'], true)) { - bb_die($lang['PASSKEY_ERR_EMPTY']); + bb_die(sprintf($lang['PASSKEY_ERR_EMPTY'], PROFILE_URL . $userdata['user_id'])); } $auth_key = $passkey; } diff --git a/library/includes/functions_torrent.php b/library/includes/functions_torrent.php index 6257bd16..af5460a9 100644 --- a/library/includes/functions_torrent.php +++ b/library/includes/functions_torrent.php @@ -444,7 +444,7 @@ function send_torrent_with_passkey ($filename) { if (!$passkey_val = generate_passkey($user_id)) { - bb_die($lang['PASSKEY_ERR_EMPTY']); + bb_die(sprintf($lang['PASSKEY_ERR_EMPTY'], PROFILE_URL . $user_id)); } elseif ($bb_cfg['ocelot']['enabled']) { diff --git a/library/includes/ucp/bonus.php b/library/includes/ucp/bonus.php index 9179b415..2a4c49a1 100644 --- a/library/includes/ucp/bonus.php +++ b/library/includes/ucp/bonus.php @@ -23,7 +23,7 @@ if (isset($_POST['bonus_id'])) require(INC_DIR .'functions_torrent.php'); if (!generate_passkey($user_id, true)) { - bb_die($lang['PASSKEY_ERR_EMPTY']); + bb_die(sprintf($lang['PASSKEY_ERR_EMPTY'], PROFILE_URL . $user_id)); } $btu = get_bt_userdata($user_id); }