mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/13496] Update calls to set_config_count()
PHPBB3-13496
This commit is contained in:
@@ -115,7 +115,6 @@ request_var('', 0, false, false, $request); // "dependency injection" for a func
|
||||
// Grab global variables, re-cache if necessary
|
||||
/* @var $config \phpbb\config\config */
|
||||
$config = $phpbb_container->get('config');
|
||||
set_config_count(null, null, null, $config);
|
||||
|
||||
if (!isset($config['version_update_from']))
|
||||
{
|
||||
|
@@ -150,7 +150,6 @@ class install_convert extends module
|
||||
|
||||
// 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);
|
||||
set_config_count(null, null, null, $config);
|
||||
|
||||
// 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
|
||||
@@ -390,7 +389,6 @@ class install_convert extends module
|
||||
|
||||
// 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);
|
||||
set_config_count(null, null, null, $config);
|
||||
|
||||
$convertor_tag = request_var('tag', '');
|
||||
|
||||
@@ -636,7 +634,6 @@ class install_convert extends module
|
||||
|
||||
// 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);
|
||||
set_config_count(null, null, null, $config);
|
||||
|
||||
// Override a couple of config variables for the duration
|
||||
$config['max_quote_depth'] = 0;
|
||||
|
@@ -1493,7 +1493,6 @@ class install_install extends module
|
||||
|
||||
// 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);
|
||||
set_config_count(null, null, null, $config);
|
||||
|
||||
$error = false;
|
||||
$search = new \phpbb\search\fulltext_native($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user);
|
||||
@@ -1909,7 +1908,6 @@ class install_install extends module
|
||||
|
||||
// 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);
|
||||
set_config_count(null, null, null, $config);
|
||||
|
||||
$sql = 'SELECT group_id
|
||||
FROM ' . GROUPS_TABLE . "
|
||||
@@ -1982,7 +1980,6 @@ class install_install extends module
|
||||
|
||||
// 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);
|
||||
set_config_count(null, null, null, $config);
|
||||
|
||||
$user->session_begin();
|
||||
$auth->login($data['admin_name'], $data['admin_pass1'], false, true, true);
|
||||
|
@@ -115,7 +115,6 @@ class install_update extends module
|
||||
|
||||
// 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);
|
||||
set_config_count(null, null, null, $config);
|
||||
|
||||
// Force template recompile
|
||||
$config['load_tplcompile'] = 1;
|
||||
|
Reference in New Issue
Block a user