mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
[ticket/12150] Add file and caller for pruning shadow topics
PHPBB3-12150
This commit is contained in:
@@ -2326,6 +2326,11 @@ function prune($forum_id, $prune_mode, $prune_date, $prune_flags = 0, $auto_sync
|
||||
$sql_and .= " AND topic_last_view_time < $prune_date";
|
||||
}
|
||||
|
||||
if ($prune_mode == 'shadow')
|
||||
{
|
||||
$sql_and .= ' AND topic_type = ' . ITEM_MOVED . "AND topic_last_post_time < $prune_date";
|
||||
}
|
||||
|
||||
$sql = 'SELECT topic_id
|
||||
FROM ' . TOPICS_TABLE . '
|
||||
WHERE ' . $db->sql_in_set('forum_id', $forum_id) . "
|
||||
|
Reference in New Issue
Block a user