mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/13782] Rename null driver to dummy for PHP7 compatibility
PHPBB3-13782
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user