Use lang variable $lang['BT_REG_FAIL'] instead of text (#989)

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

View file

@ -72,7 +72,7 @@ switch ($mode) {
'user_password' => true,
'user_email' => true,
'user_timezone' => true,
'user_lang' => $bb_cfg['allow_change']['language'],
'user_lang' => true,
'user_opt' => true
];

View file

@ -424,12 +424,11 @@ class Torrent
if (!DB()->sql_query($sql)) {
$sql_error = DB()->sql_error();
// Duplicate entry
if ($sql_error['code'] == 1062) {
// Duplicate entry
self::torrent_error_exit($lang['BT_REG_FAIL_SAME_HASH']);
}
bb_die('Could not register torrent on tracker');
bb_die($lang['BT_REG_FAIL']);
}
// update tracker status for this attachment