diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-04-04 16:34:29 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-06-11 21:50:08 +0200 |
commit | 30891ffb465f9745a6cd3c05957226ef0e600d94 (patch) | |
tree | 57bc07d5b11de79b312a765ec6fe36c9cad7614d /phpBB/includes/acp/acp_forums.php | |
parent | a5b238019b24a944e4ca8c6fe34dee9897790bd6 (diff) | |
download | forums-30891ffb465f9745a6cd3c05957226ef0e600d94.tar forums-30891ffb465f9745a6cd3c05957226ef0e600d94.tar.gz forums-30891ffb465f9745a6cd3c05957226ef0e600d94.tar.bz2 forums-30891ffb465f9745a6cd3c05957226ef0e600d94.tar.xz forums-30891ffb465f9745a6cd3c05957226ef0e600d94.zip |
[ticket/9167] Remove shadow topics from remaining forums when deleting a forum
including posts.
The function delete_topic_shadows() had to be reimplemented.
It was there but it was completly broken and hasn't been used at all.
PHPBB3-9167
Diffstat (limited to 'phpBB/includes/acp/acp_forums.php')
-rw-r--r-- | phpBB/includes/acp/acp_forums.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php index 6261f866bb..ef3be980a8 100644 --- a/phpBB/includes/acp/acp_forums.php +++ b/phpBB/includes/acp/acp_forums.php @@ -1642,6 +1642,9 @@ class acp_forums delete_attachments('topic', $topic_ids, false); + // Delete shadow topics pointing to topics in this forum + delete_topic_shadows($forum_id); + // Before we remove anything we make sure we are able to adjust the post counts later. ;) $sql = 'SELECT poster_id FROM ' . POSTS_TABLE . ' |