From b2826e91890da204d8362cdada91843e0f2b1015 Mon Sep 17 00:00:00 2001 From: Marty Kube Date: Sun, 3 Aug 2014 20:44:02 -0400 Subject: [PATCH] phpbb category names can be longer than 50 chars and are rejected during import --- script/import_scripts/phpbb3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/phpbb3.rb b/script/import_scripts/phpbb3.rb index 112d6f4a87a..eeae39c87b7 100644 --- a/script/import_scripts/phpbb3.rb +++ b/script/import_scripts/phpbb3.rb @@ -64,7 +64,7 @@ class ImportScripts::PhpBB3 < ImportScripts::Base def import_categories results = mysql_query(" - SELECT forum_id id, parent_id, forum_name name, forum_desc description + SELECT forum_id id, parent_id, left(forum_name, 50) name, forum_desc description FROM phpbb_forums ORDER BY parent_id ASC, forum_id ASC ")