diff options
Diffstat (limited to 'phpBB/install')
| -rw-r--r-- | phpBB/install/index.php | 9 | ||||
| -rw-r--r-- | phpBB/install/install_convert.php | 6 | ||||
| -rw-r--r-- | phpBB/install/install_install.php | 6 | ||||
| -rw-r--r-- | phpBB/install/install_update.php | 2 | 
4 files changed, 13 insertions, 10 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php index dd3590e854..657825ca39 100644 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -241,7 +241,8 @@ $sub = $request->variable('sub', '');  // Set PHP error handler to ours  set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler'); -$user = new \phpbb\user('\phpbb\datetime'); +$lang_service = new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx)); +$user = new \phpbb\user($lang_service, '\phpbb\datetime');  $auth = new \phpbb\auth\auth();  // Add own hook handler, if present. :o @@ -279,6 +280,7 @@ $cache_path = $phpbb_root_path . 'cache/';  $twig_environment = new \phpbb\template\twig\environment(  	$config, +	$phpbb_filesystem,  	$phpbb_path_helper,  	$phpbb_container,  	$cache_path, @@ -287,14 +289,15 @@ $twig_environment = new \phpbb\template\twig\environment(  );  $phpbb_container->set('template.twig.environment', $twig_environment); +$twig_context = new \phpbb\template\context();  $template = new \phpbb\template\twig\twig(  	$phpbb_path_helper,  	$config,  	$user, -	new \phpbb\template\context(), +	$twig_context,  	$twig_environment,  	$cache_path, -	array($phpbb_container->get('template.twig.extensions.phpbb')) +	array(new \phpbb\template\twig\extension($twig_context, $user))  );  $paths = array($phpbb_root_path . 'install/update/new/adm/style', $phpbb_admin_path . 'style'); diff --git a/phpBB/install/install_convert.php b/phpBB/install/install_convert.php index e268565be3..408c14e981 100644 --- a/phpBB/install/install_convert.php +++ b/phpBB/install/install_convert.php @@ -153,7 +153,7 @@ class install_convert extends module  				unset($dbpasswd);  				// We need to fill the config to let internal functions correctly work -				$config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE); +				$config = new \phpbb\config\db($db, new \phpbb\cache\driver\dummy, CONFIG_TABLE);  				// Detect if there is already a conversion in progress at this point and offer to resume  				// It's quite possible that the user will get disconnected during a large conversion so they need to be able to resume it @@ -392,7 +392,7 @@ class install_convert extends module  		$this->page_title = $lang['STAGE_SETTINGS'];  		// We need to fill the config to let internal functions correctly work -		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE); +		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\dummy, CONFIG_TABLE);  		$convertor_tag = $request->variable('tag', ''); @@ -639,7 +639,7 @@ class install_convert extends module  		unset($dbpasswd);  		// We need to fill the config to let internal functions correctly work -		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE); +		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\dummy, CONFIG_TABLE);  		// Override a couple of config variables for the duration  		$config['max_quote_depth'] = 0; diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 3c37a028cb..be6fa40566 100644 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -1522,7 +1522,7 @@ class install_install extends module  		include_once($phpbb_root_path . 'phpbb/search/fulltext_native.' . $phpEx);  		// We need to fill the config to let internal functions correctly work -		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE); +		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\dummy, CONFIG_TABLE);  		$error = false;  		$search = new \phpbb\search\fulltext_native($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user); @@ -1937,7 +1937,7 @@ class install_install extends module  		$data = $this->get_submitted_data();  		// We need to fill the config to let internal functions correctly work -		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE); +		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\dummy, CONFIG_TABLE);  		$sql = 'SELECT group_id  			FROM ' . GROUPS_TABLE . " @@ -2009,7 +2009,7 @@ class install_install extends module  		$data = $this->get_submitted_data();  		// We need to fill the config to let internal functions correctly work -		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE); +		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\dummy, CONFIG_TABLE);  		$user->session_begin();  		$auth->login($data['admin_name'], $data['admin_pass1'], false, true, true); diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php index 410a8afb66..288e728fce 100644 --- a/phpBB/install/install_update.php +++ b/phpBB/install/install_update.php @@ -118,7 +118,7 @@ class install_update extends module  		unset($dbpasswd);  		// We need to fill the config to let internal functions correctly work -		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE); +		$config = new \phpbb\config\db($db, new \phpbb\cache\driver\dummy, CONFIG_TABLE);  		// Force template recompile  		$config['load_tplcompile'] = 1;  | 
