Minor improvements (#773)

This commit is contained in:
Roman Kelesidis 2023-06-05 15:59:01 +07:00 committed by GitHub
commit 2b5c1d5734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -22,7 +22,7 @@ switch ($mode) {
// Валидность статуса
if (!isset($lang['TOR_STATUS_NAME'][$status])) {
$this->ajax_die($lang['STATUS_DOES_EXIST'] . $new_status);
$this->ajax_die($lang['TOR_STATUS_FAILED']);
}
$topic_ids = DB()->fetch_rowset("SELECT attach_id FROM " . BB_BT_TORRENTS . " WHERE topic_id IN($topics)", 'attach_id');
@ -94,17 +94,19 @@ switch ($mode) {
$link_reg_ip = $link_last_ip = '';
if (!empty($reg_ip)) {
$link_reg_ip .= $lang['OTHER_IP'] . ' ';
$link_reg_ip .= $lang['OTHER_IP'] . '&nbsp';
foreach ($reg_ip as $row) {
$link_reg_ip .= profile_url($row) . ' ';
$link_reg_ip .= profile_url($row) . ', ';
}
$link_reg_ip = rtrim($link_reg_ip, ', ');
}
if (!empty($last_ip)) {
$link_last_ip .= $lang['OTHER_IP'] . ' ';
$link_last_ip .= $lang['OTHER_IP'] . '&nbsp';
foreach ($last_ip as $row) {
$link_last_ip .= profile_url($row) . ' ';
$link_last_ip .= profile_url($row) . ', ';
}
$link_last_ip = rtrim($link_last_ip, ', ');
}
if ($profiledata['user_level'] == ADMIN && !IS_ADMIN) {

View file

@ -1117,7 +1117,6 @@ $lang['CHANGE_TOR_TYPE'] = 'Type the torrent successfully changed';
$lang['DEL_TORRENT'] = 'Are you sure you want to delete the torrent?';
$lang['DEL_MOVE_TORRENT'] = 'Are you sure you want to delete and move the topic?';
$lang['UNEXECUTED_RELEASE'] = 'Do you have a shapeless release before creating a new fix his unformed!';
$lang['STATUS_DOES_EXIST'] = 'Such status does not exist: ';
// tor_comment
$lang['TOR_MOD_TITLE'] = 'Changing the status of distribution - %s';