$update_msg .= '</ul>'; gen_error_msg($update_msg, $update_title, $update_explain, true); } } // Probably best place to validate the settings $settings->validate(); $error = $settings->get_error(); $page = empty($error) ? $page : 'settings'; if ($page == 'main' || $page == 'settings' || $alt_env_missing) { if ($settings->install || $settings->is_converted || $mode == 'update_settings' || $page == 'settings' || $alt_env_missing) { $page = 'settings'; require $quickinstall_path . 'includes/qi_settings.' . $phpEx; } } // Hide manage boards if there is no saved config. $template->assign_var('S_IN_INSTALL', $settings->install); // now create a module_handler object $module = new module_handler($quickinstall_path . 'modules/', 'qi_'); // Set some standard variables we want to force if (defined('PHPBB_31')) { $config = new \phpbb\config\config(array('load_tplcompile' => '1')); set_config(false, false, false, $config); set_config_count(null, null, null, $config); } else { $config = array('load_tplcompile' => '1'); } // overwrite $cache->cache_dir = $settings->get_cache_dir(); $template->cachepath = $cache->cache_dir . 'tpl_qi_'; // Load the main module $module->load($page, 'qi_main');