From 2b5c1d573421ca7c9ca14c9e30e4c166aab4d5b6 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 5 Jun 2023 15:59:01 +0700 Subject: [PATCH] Minor improvements (#773) --- library/ajax/mod_action.php | 12 +++++++----- library/language/source/main.php | 1 - 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/library/ajax/mod_action.php b/library/ajax/mod_action.php index 4551cdc0e..b6b3da9b8 100644 --- a/library/ajax/mod_action.php +++ b/library/ajax/mod_action.php @@ -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'] . ' '; 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'] . ' '; 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) { diff --git a/library/language/source/main.php b/library/language/source/main.php index 544d973b6..e69af09ff 100644 --- a/library/language/source/main.php +++ b/library/language/source/main.php @@ -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';