mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#773)
This commit is contained in:
parent
a8eec778df
commit
2b5c1d5734
2 changed files with 7 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue