mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/14044] Deduplicate the installers
PHPBB3-14044
This commit is contained in:
committed by
Marc Alexander
parent
cc1a96a804
commit
597297b169
@@ -80,6 +80,16 @@ class create_schema extends \phpbb\install\task_base
|
||||
$factory = new \phpbb\db\tools\factory();
|
||||
|
||||
$this->db = new $dbms();
|
||||
$this->db->sql_connect(
|
||||
$config->get('dbhost'),
|
||||
$config->get('dbuser'),
|
||||
$config->get('dbpasswd'),
|
||||
$config->get('dbname'),
|
||||
$config->get('dbport'),
|
||||
false,
|
||||
false
|
||||
);
|
||||
|
||||
$this->config = $config;
|
||||
$this->db_tools = $factory->get($this->db);
|
||||
$this->database_helper = $db_helper;
|
||||
@@ -89,9 +99,6 @@ class create_schema extends \phpbb\install\task_base
|
||||
$this->php_ext = $php_ext;
|
||||
|
||||
parent::__construct(true);
|
||||
|
||||
// Connect to DB
|
||||
$this->db->sql_connect($config->get('dbhost'), $config->get('dbuser'), $config->get('dbpasswd'), $config->get('dbname'), $config->get('dbport'), false, false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user