diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-10-08 23:09:12 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-10-08 23:09:31 +0200 |
| commit | e447a0fa0797440688335bc0dc18c8a73b5586ec (patch) | |
| tree | bffb156859d1efb5ed6cb04a3fa5b51ebcf8ede3 /phpBB/includes/content_visibility.php | |
| parent | 53e01bba19784b0fb36324c10c010f969f05d253 (diff) | |
| download | forums-e447a0fa0797440688335bc0dc18c8a73b5586ec.tar forums-e447a0fa0797440688335bc0dc18c8a73b5586ec.tar.gz forums-e447a0fa0797440688335bc0dc18c8a73b5586ec.tar.bz2 forums-e447a0fa0797440688335bc0dc18c8a73b5586ec.tar.xz forums-e447a0fa0797440688335bc0dc18c8a73b5586ec.zip | |
[feature/soft-delete] Fix restoring a post via editing
PHPBB3-9567
Diffstat (limited to 'phpBB/includes/content_visibility.php')
| -rw-r--r-- | phpBB/includes/content_visibility.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/content_visibility.php b/phpBB/includes/content_visibility.php index 7761587c53..dcb7f363f8 100644 --- a/phpBB/includes/content_visibility.php +++ b/phpBB/includes/content_visibility.php @@ -311,6 +311,12 @@ class phpbb_content_visibility } else if ($is_starter && $topic_id) { + if (!function_exists('sync')) + { + global $phpEx, $phpbb_root_path; + include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); + } + // ... so we need to use sync, if the first post is changed. // The forum is resynced recursive by sync() itself. sync('topic', 'topic_id', $topic_id, true); |
