mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Use lang variable $lang['BT_REG_FAIL'] instead of text (#989)
This commit is contained in:
parent
8fa4758ebe
commit
acda8be43c
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
];
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue