mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -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_password' => true,
|
||||||
'user_email' => true,
|
'user_email' => true,
|
||||||
'user_timezone' => true,
|
'user_timezone' => true,
|
||||||
'user_lang' => $bb_cfg['allow_change']['language'],
|
'user_lang' => true,
|
||||||
'user_opt' => true
|
'user_opt' => true
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -424,12 +424,11 @@ class Torrent
|
||||||
if (!DB()->sql_query($sql)) {
|
if (!DB()->sql_query($sql)) {
|
||||||
$sql_error = DB()->sql_error();
|
$sql_error = DB()->sql_error();
|
||||||
|
|
||||||
if ($sql_error['code'] == 1062) {
|
|
||||||
// Duplicate entry
|
// Duplicate entry
|
||||||
|
if ($sql_error['code'] == 1062) {
|
||||||
self::torrent_error_exit($lang['BT_REG_FAIL_SAME_HASH']);
|
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
|
// update tracker status for this attachment
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue