Minor improvements (#1391)

* Minor improvements

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-02-08 17:57:03 +07:00 committed by GitHub
commit fdc56b42c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 6 deletions

View file

@ -12,7 +12,7 @@
- Removed converting for legacy md5 passwords [\#1386](https://github.com/torrentpier/torrentpier/pull/1386) ([belomaxorka](https://github.com/belomaxorka)) - Removed converting for legacy md5 passwords [\#1386](https://github.com/torrentpier/torrentpier/pull/1386) ([belomaxorka](https://github.com/belomaxorka))
- Fixed issue with poll_users cleaning at every cron job startup [\#1390](https://github.com/torrentpier/torrentpier/pull/1390) ([belomaxorka](https://github.com/belomaxorka)) - Fixed issue with poll_users cleaning at every cron job startup [\#1390](https://github.com/torrentpier/torrentpier/pull/1390) ([belomaxorka](https://github.com/belomaxorka))
- Used hashing for filenames generation [\#1385](https://github.com/torrentpier/torrentpier/pull/1385) ([belomaxorka](https://github.com/belomaxorka)) - Used hashing for filenames generation [\#1385](https://github.com/torrentpier/torrentpier/pull/1385) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#1382](https://github.com/torrentpier/torrentpier/pull/1382), [\#1383](https://github.com/torrentpier/torrentpier/pull/1383) ([belomaxorka](https://github.com/belomaxorka)) - Minor improvements [\#1382](https://github.com/torrentpier/torrentpier/pull/1382), [\#1383](https://github.com/torrentpier/torrentpier/pull/1383), [\#1391](https://github.com/torrentpier/torrentpier/pull/1391) ([belomaxorka](https://github.com/belomaxorka))
- Some bugfixes [\#1380](https://github.com/torrentpier/torrentpier/pull/1380) ([belomaxorka](https://github.com/belomaxorka)) - Some bugfixes [\#1380](https://github.com/torrentpier/torrentpier/pull/1380) ([belomaxorka](https://github.com/belomaxorka))
- New Crowdin updates [\#1384](https://github.com/torrentpier/torrentpier/pull/1384) ([Exileum](https://github.com/Exileum)) - New Crowdin updates [\#1384](https://github.com/torrentpier/torrentpier/pull/1384) ([Exileum](https://github.com/Exileum))

View file

@ -1321,6 +1321,7 @@ $lang['NEVER'] = 'Never';
//mpd //mpd
$lang['DELETE_POSTS'] = 'Delete selected posts'; $lang['DELETE_POSTS'] = 'Delete selected posts';
$lang['DELETE_POSTS_SUCCESFULLY'] = 'The selected posts have been successfully removed'; $lang['DELETE_POSTS_SUCCESFULLY'] = 'The selected posts have been successfully removed';
$lang['NO_POSTS_REMOVED'] = 'No posts were removed.';
//ts //ts
$lang['TOPICS_ANNOUNCEMENT'] = 'Announcements'; $lang['TOPICS_ANNOUNCEMENT'] = 'Announcements';

View file

@ -132,8 +132,6 @@ if ($topic_id) {
// Start session management // Start session management
$user->session_start(['req_login' => true]); $user->session_start(['req_login' => true]);
set_die_append_msg($forum_id, $topic_id);
// Check if user did or did not confirm. If they did not, forward them to the last page they were on // Check if user did or did not confirm. If they did not, forward them to the last page they were on
if (isset($_POST['cancel']) || IS_GUEST) { if (isset($_POST['cancel']) || IS_GUEST) {
$redirect = 'index.php'; $redirect = 'index.php';
@ -237,7 +235,7 @@ switch ($mode) {
$datastore->update('network_news'); $datastore->update('network_news');
} }
$msg = ($result) ? $lang['TOPICS_REMOVED'] : $lang['NO_TOPICS_REMOVED']; $msg = $result ? $lang['TOPICS_REMOVED'] : $lang['NO_TOPICS_REMOVED'];
bb_die(return_msg_mcp($msg)); bb_die(return_msg_mcp($msg));
} else { } else {
print_confirmation([ print_confirmation([
@ -268,7 +266,7 @@ switch ($mode) {
$datastore->update('network_news'); $datastore->update('network_news');
} }
$msg = ($result) ? $lang['TOPICS_MOVED'] : $lang['NO_TOPICS_MOVED']; $msg = $result ? $lang['TOPICS_MOVED'] : $lang['NO_TOPICS_MOVED'];
bb_die(return_msg_mcp($msg)); bb_die(return_msg_mcp($msg));
} else { } else {
if (IS_ADMIN) { if (IS_ADMIN) {
@ -518,7 +516,7 @@ switch ($mode) {
// Delete posts // Delete posts
$result = \TorrentPier\Legacy\Admin\Common::post_delete(explode(',', $post_id_sql)); $result = \TorrentPier\Legacy\Admin\Common::post_delete(explode(',', $post_id_sql));
$msg = ($result) ? $lang['DELETE_POSTS_SUCCESFULLY'] : 'No posts were removed'; $msg = $result ? $lang['DELETE_POSTS_SUCCESFULLY'] : $lang['NO_POSTS_REMOVED'];
bb_die(return_msg_mcp($msg)); bb_die(return_msg_mcp($msg));
} else { } else {
$sql = "SELECT u.username, p.*, pt.post_text, p.post_username $sql = "SELECT u.username, p.*, pt.post_text, p.post_username