diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2014-01-31 23:06:03 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2014-03-29 21:56:53 +0100 |
| commit | 02fdae4e8800ded878dcdc848563aef202069317 (patch) | |
| tree | 41e28f919b8ac913c94a3c895edf4f7364ee3dfb /phpBB/includes/functions_admin.php | |
| parent | a7abf8218dd8440926549df1f5659820f05fd76a (diff) | |
| download | forums-02fdae4e8800ded878dcdc848563aef202069317.tar forums-02fdae4e8800ded878dcdc848563aef202069317.tar.gz forums-02fdae4e8800ded878dcdc848563aef202069317.tar.bz2 forums-02fdae4e8800ded878dcdc848563aef202069317.tar.xz forums-02fdae4e8800ded878dcdc848563aef202069317.zip | |
[ticket/12150] Add file and caller for pruning shadow topics
PHPBB3-12150
Diffstat (limited to 'phpBB/includes/functions_admin.php')
| -rw-r--r-- | phpBB/includes/functions_admin.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 81a381b326..a277429c32 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -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) . " |
