aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/convertors
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-10-25 12:36:06 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-10-25 12:36:06 +0200
commit19380a9b0846d91b214ba7cc1f7a5df62be4f4ca (patch)
treebf0c43158e6a6b519e8bfd44458ef2d6862f4469 /phpBB/install/convertors
parente9f4be9052c3f3874a79c1b68934fc6b256491f1 (diff)
downloadforums-19380a9b0846d91b214ba7cc1f7a5df62be4f4ca.tar
forums-19380a9b0846d91b214ba7cc1f7a5df62be4f4ca.tar.gz
forums-19380a9b0846d91b214ba7cc1f7a5df62be4f4ca.tar.bz2
forums-19380a9b0846d91b214ba7cc1f7a5df62be4f4ca.tar.xz
forums-19380a9b0846d91b214ba7cc1f7a5df62be4f4ca.zip
[ticket/11031] Correctly set topic and post visibility
PHPBB3-11031
Diffstat (limited to 'phpBB/install/convertors')
-rw-r--r--phpBB/install/convertors/convert_phpbb20.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/install/convertors/convert_phpbb20.php b/phpBB/install/convertors/convert_phpbb20.php
index a6dced8d7d..da894d440a 100644
--- a/phpBB/install/convertors/convert_phpbb20.php
+++ b/phpBB/install/convertors/convert_phpbb20.php
@@ -509,6 +509,8 @@ if (!$get_info)
array('topic_type', 'topics.topic_type', 'phpbb_convert_topic_type'),
array('topic_first_post_id', 'topics.topic_first_post_id', ''),
array('topic_last_view_time', 'posts.post_time', 'intval'),
+ array('topic_visibility', ITEM_APPROVED, ''),
+
array('poll_title', 'vote_desc.vote_text', array('function1' => 'null_to_str', 'function2' => 'phpbb_set_encoding', 'function3' => 'htmlspecialchars_decode', 'function4' => 'utf8_htmlspecialchars')),
array('poll_start', 'vote_desc.vote_start', 'null_to_zero'),
array('poll_length', 'vote_desc.vote_length', 'null_to_zero'),
@@ -542,6 +544,7 @@ if (!$get_info)
array('topic_moved_id', 'topics.topic_moved_id', ''),
array('topic_type', 'topics.topic_type', 'phpbb_convert_topic_type'),
array('topic_first_post_id', 'topics.topic_first_post_id', ''),
+ array('topic_visibility', ITEM_APPROVED, ''),
array('poll_title', 'vote_desc.vote_text', array('function1' => 'null_to_str', 'function2' => 'phpbb_set_encoding', 'function3' => 'htmlspecialchars_decode', 'function4' => 'utf8_htmlspecialchars')),
array('poll_start', 'vote_desc.vote_start', 'null_to_zero'),
@@ -649,6 +652,7 @@ if (!$get_info)
array('post_edit_count', 'posts.post_edit_count', ''),
array('post_edit_reason', '', ''),
array('post_edit_user', '', 'phpbb_post_edit_user'),
+ array('post_visibility', ITEM_APPROVED, ''),
array('bbcode_uid', 'posts.post_time', 'make_uid'),
array('post_text', 'posts_text.post_text', 'phpbb_prepare_message'),