mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#1467)
* Minor improvements * Update CHANGELOG.md * Update change_user_rank.php
This commit is contained in:
parent
65a7b89a9e
commit
3c297fce24
4 changed files with 7 additions and 6 deletions
|
@ -17,7 +17,7 @@
|
|||
- Demo mode: Allow registering torrents by default [\#1440](https://github.com/torrentpier/torrentpier/pull/1440) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Temp: Removed showing forum description in `viewforum.php` [\#1465](https://github.com/torrentpier/torrentpier/pull/1465) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Code refactoring [\#1441](https://github.com/torrentpier/torrentpier/pull/1441) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1435](https://github.com/torrentpier/torrentpier/pull/1435), [\#1443](https://github.com/torrentpier/torrentpier/pull/1443), [\#1446](https://github.com/torrentpier/torrentpier/pull/1446), [\#1450](https://github.com/torrentpier/torrentpier/pull/1450), [\#1452](https://github.com/torrentpier/torrentpier/pull/1452), [\#1458](https://github.com/torrentpier/torrentpier/pull/1458), [\#1461](https://github.com/torrentpier/torrentpier/pull/1461), [\#1462](https://github.com/torrentpier/torrentpier/pull/1462) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1435](https://github.com/torrentpier/torrentpier/pull/1435), [\#1443](https://github.com/torrentpier/torrentpier/pull/1443), [\#1446](https://github.com/torrentpier/torrentpier/pull/1446), [\#1450](https://github.com/torrentpier/torrentpier/pull/1450), [\#1452](https://github.com/torrentpier/torrentpier/pull/1452), [\#1458](https://github.com/torrentpier/torrentpier/pull/1458), [\#1461](https://github.com/torrentpier/torrentpier/pull/1461), [\#1462](https://github.com/torrentpier/torrentpier/pull/1462), [\#1467](https://github.com/torrentpier/torrentpier/pull/1467) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Updated deps [\#1454](https://github.com/torrentpier/torrentpier/pull/1454), [\#1455](https://github.com/torrentpier/torrentpier/pull/1455), [\#1459](https://github.com/torrentpier/torrentpier/pull/1459), [\#1460](https://github.com/torrentpier/torrentpier/pull/1460) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- New Crowdin updates [\#1444](https://github.com/torrentpier/torrentpier/pull/1444), [\#1447](https://github.com/torrentpier/torrentpier/pull/1447), [\#1453](https://github.com/torrentpier/torrentpier/pull/1453) ([Exileum](https://github.com/Exileum))
|
||||
|
||||
|
|
|
@ -322,7 +322,7 @@ if ($mode) {
|
|||
// Create a category in the DB
|
||||
//
|
||||
if (!$new_cat_title = trim($_POST['categoryname'])) {
|
||||
bb_die('Category name is empty');
|
||||
bb_die($lang['CATEGORY_NAME_EMPTY']);
|
||||
}
|
||||
|
||||
check_name_dup('cat', $new_cat_title);
|
||||
|
@ -370,7 +370,7 @@ if ($mode) {
|
|||
// Modify a category in the DB
|
||||
//
|
||||
if (!$new_cat_title = trim($_POST['cat_title'])) {
|
||||
bb_die('Category name is empty');
|
||||
bb_die($lang['CATEGORY_NAME_EMPTY']);
|
||||
}
|
||||
|
||||
$cat_id = (int)$_POST[POST_CAT_URL];
|
||||
|
|
|
@ -32,7 +32,7 @@ DB()->query("UPDATE " . BB_USERS . " SET user_rank = $rank_id WHERE user_id = $u
|
|||
|
||||
\TorrentPier\Sessions::cache_rm_user_sessions($user_id);
|
||||
|
||||
$user_rank = ($rank_id) ? '<span class="' . $ranks[$rank_id]['rank_style'] . '">' . $ranks[$rank_id]['rank_title'] . '</span>' : '';
|
||||
$user_rank = $rank_id ? '<span class="' . $ranks[$rank_id]['rank_style'] . '">' . $ranks[$rank_id]['rank_title'] . '</span>' : '';
|
||||
|
||||
$this->response['html'] = ($rank_id) ? $lang['AWARDED_RANK'] . "<b> $user_rank </b>" : $lang['SHOT_RANK'];
|
||||
$this->response['rank_name'] = ($rank_id) ? $user_rank : $lang['USER'];
|
||||
$this->response['html'] = $rank_id ? $lang['AWARDED_RANK'] . "<b> $user_rank </b>" : $lang['SHOT_RANK'];
|
||||
$this->response['rank_name'] = $rank_id ? $user_rank : $lang['USER'];
|
||||
|
|
|
@ -2095,6 +2095,7 @@ $lang['MOVE_CONTENTS'] = 'Move all contents';
|
|||
$lang['FORUM_DELETE'] = 'Delete Forum';
|
||||
$lang['FORUM_DELETE_EXPLAIN'] = 'The form below will allow you to delete a forum (or category) and decide where you want to put all topics (or forums) it contained.';
|
||||
$lang['CATEGORY_DELETE'] = 'Delete Category';
|
||||
$lang['CATEGORY_NAME_EMPTY'] = 'Category name not specified';
|
||||
|
||||
$lang['STATUS_LOCKED'] = 'Locked';
|
||||
$lang['STATUS_UNLOCKED'] = 'Unlocked';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue