mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Used declensions for days in some cases (#1310)
* Minor improvements * Update admin_forums.php * Updated * Updated * Updated
This commit is contained in:
parent
6bf987edb0
commit
489c02aea1
3 changed files with 7 additions and 7 deletions
|
@ -433,6 +433,7 @@ if ($mode) {
|
|||
if ($to_id == -1) {
|
||||
// Delete everything from forum
|
||||
\TorrentPier\Legacy\Admin\Common::topic_delete('prune', $from_id, 0, true);
|
||||
$datastore->update('stats');
|
||||
} else {
|
||||
// Move all posts
|
||||
$sql = 'SELECT * FROM ' . BB_FORUMS . " WHERE forum_id IN($from_id, $to_id)";
|
||||
|
@ -472,7 +473,6 @@ if ($mode) {
|
|||
fix_orphan_sf();
|
||||
\TorrentPier\Legacy\Group::update_user_level('all');
|
||||
$datastore->update('cat_forums');
|
||||
$datastore->update('stats');
|
||||
CACHE('bb_cache')->rm();
|
||||
|
||||
bb_die($lang['FORUMS_UPDATED'] . '<br /><br />' . sprintf($lang['CLICK_RETURN_FORUMADMIN'], '<a href="admin_forums.php">', '</a>') . '<br /><br />' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="index.php?pane=right">', '</a>'));
|
||||
|
@ -739,7 +739,7 @@ if (!$mode || $show_main_page) {
|
|||
'FORUM_DESC' => htmlCHR($forum_rows[$j]['forum_desc']),
|
||||
'NUM_TOPICS' => $forum_rows[$j]['forum_topics'],
|
||||
'NUM_POSTS' => $forum_rows[$j]['forum_posts'],
|
||||
'PRUNE_DAYS' => $forum_rows[$j]['prune_days'] ?: '-',
|
||||
'PRUNE_DAYS' => !empty($forum_rows[$j]['prune_days']) ? delta_time((TIMENOW - 86400 * $forum_rows[$j]['prune_days']), TIMENOW, 'days') : '-',
|
||||
|
||||
'ORDER' => $forum_rows[$j]['forum_order'],
|
||||
'FORUM_ID' => $forum_rows[$j]['forum_id'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue