mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Some cleanup...😣 (#1488)
* Some cleanup...😣
* Update main.php
* Update CHANGELOG.md
* Update main.php
* Update main.php
* Update main.php
* Update main.php
* Update main.php
* Update main.php
* Update main.php
* Update main.php
* Update main.php
* Update main.php
* Update main.php
* Update main.php
* Update main.php
* Update config.php
* Update Common.php
* Updated
* Update filelist.php
* Update filelist.php
* Update viewtopic_attach.tpl
* Updated
This commit is contained in:
parent
ce6923b160
commit
237e7ec6ef
13 changed files with 65 additions and 71 deletions
16
modcp.php
16
modcp.php
|
@ -225,13 +225,17 @@ switch ($mode) {
|
|||
//Обновление кеша новостей на главной
|
||||
$news_forums = array_flip(explode(',', $bb_cfg['latest_news_forum_id']));
|
||||
if (isset($news_forums[$forum_id]) && $bb_cfg['show_latest_news'] && $result) {
|
||||
$datastore->enqueue('latest_news');
|
||||
$datastore->enqueue([
|
||||
'latest_news'
|
||||
]);
|
||||
$datastore->update('latest_news');
|
||||
}
|
||||
|
||||
$net_forums = array_flip(explode(',', $bb_cfg['network_news_forum_id']));
|
||||
if (isset($net_forums[$forum_id]) && $bb_cfg['show_network_news'] && $result) {
|
||||
$datastore->enqueue('network_news');
|
||||
$datastore->enqueue([
|
||||
'network_news'
|
||||
]);
|
||||
$datastore->update('network_news');
|
||||
}
|
||||
|
||||
|
@ -256,13 +260,17 @@ switch ($mode) {
|
|||
//Обновление кеша новостей на главной
|
||||
$news_forums = array_flip(explode(',', $bb_cfg['latest_news_forum_id']));
|
||||
if ((isset($news_forums[$forum_id]) || isset($news_forums[$new_forum_id])) && $bb_cfg['show_latest_news'] && $result) {
|
||||
$datastore->enqueue('latest_news');
|
||||
$datastore->enqueue([
|
||||
'latest_news'
|
||||
]);
|
||||
$datastore->update('latest_news');
|
||||
}
|
||||
|
||||
$net_forums = array_flip(explode(',', $bb_cfg['network_news_forum_id']));
|
||||
if ((isset($net_forums[$forum_id]) || isset($net_forums[$new_forum_id])) && $bb_cfg['show_network_news'] && $result) {
|
||||
$datastore->enqueue('network_news');
|
||||
$datastore->enqueue([
|
||||
'network_news'
|
||||
]);
|
||||
$datastore->update('network_news');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue