mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
parent
e6e802a6a6
commit
fdc56b42c1
3 changed files with 5 additions and 6 deletions
|
@ -12,7 +12,7 @@
|
|||
- 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))
|
||||
- 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))
|
||||
- New Crowdin updates [\#1384](https://github.com/torrentpier/torrentpier/pull/1384) ([Exileum](https://github.com/Exileum))
|
||||
|
||||
|
|
|
@ -1321,6 +1321,7 @@ $lang['NEVER'] = 'Never';
|
|||
//mpd
|
||||
$lang['DELETE_POSTS'] = 'Delete selected posts';
|
||||
$lang['DELETE_POSTS_SUCCESFULLY'] = 'The selected posts have been successfully removed';
|
||||
$lang['NO_POSTS_REMOVED'] = 'No posts were removed.';
|
||||
|
||||
//ts
|
||||
$lang['TOPICS_ANNOUNCEMENT'] = 'Announcements';
|
||||
|
|
|
@ -132,8 +132,6 @@ if ($topic_id) {
|
|||
// Start session management
|
||||
$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
|
||||
if (isset($_POST['cancel']) || IS_GUEST) {
|
||||
$redirect = 'index.php';
|
||||
|
@ -237,7 +235,7 @@ switch ($mode) {
|
|||
$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));
|
||||
} else {
|
||||
print_confirmation([
|
||||
|
@ -268,7 +266,7 @@ switch ($mode) {
|
|||
$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));
|
||||
} else {
|
||||
if (IS_ADMIN) {
|
||||
|
@ -518,7 +516,7 @@ switch ($mode) {
|
|||
// Delete posts
|
||||
$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));
|
||||
} else {
|
||||
$sql = "SELECT u.username, p.*, pt.post_text, p.post_username
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue