Mon 11th Jun '07 6:54am
|
 |
vBulletin Team
|
|
|
phpBB3: Wrong target table prefix
Importing Forums (categories) from a phpBB3 board will lead to database errors if the target database uses a table-prefix.
Unified diff:
Code:
Index: /systems/phpBB3/005.php
===================================================================
--- /systems/phpBB3/005.php (revision 1757)
+++ /systems/phpBB3/005.php (revision 1758)
@@ -121,7 +121,7 @@
if($try->is_valid())
{
- if($try->import_category($Db_target, $t_db_type, $target_table_prefix))
+ if($try->import_category($Db_target, $t_db_type, $t_tb_prefix))
{
$displayobject->display_now('<br /><span class="isucc"><b>' . $try->how_complete() . '%</b></span> ' . $displayobject->phrases['forum'] . ' -> ' . $try->get_value('mandatory', 'title'));
$sessionobject->add_session_var("{$class_num}_objects_done", intval($sessionobject->get_session_var("{$class_num}_objects_done")) + 1);
@@ -251,7 +251,7 @@
$sessionobject->timing($class_num, 'stop', $sessionobject->get_session_var('autosubmit'));
$sessionobject->remove_session_var("{$class_num}_start");
- $this->build_forum_child_lists($Db_target, $target_database_type, $target_table_prefix);
+ $this->build_forum_child_lists($Db_target, $target_database_type, $t_tb_prefix);
$displayobject->update_html($displayobject->module_finished($this->_modulestring,
$sessionobject->return_stats($class_num, '_time_taken'),
|