Skip to content
Snippets Groups Projects
Commit f2dc0f8d authored by Xavier Perseguers's avatar Xavier Perseguers Committed by Markus Klein
Browse files

[BUGFIX] DatabaseConnection must be initialized

The install tool forgets to initialize the database connection.

Change-Id: Ib7355e4f931c7152a6d13df99ed550c1b61eacf9
Fixes: #56763
Releases: 6.2
Reviewed-on: https://review.typo3.org/28254
Reviewed-by: Andreas Fernandez
Tested-by: Andreas Fernandez
Reviewed-by: Markus Klein
Tested-by: Markus Klein
parent c5f4b18b
Branches
Tags
No related merge requests found
......@@ -253,6 +253,7 @@ abstract class AbstractAction implements ActionInterface {
$database->setDatabasePort($GLOBALS['TYPO3_CONF_VARS']['DB']['port']);
$database->setDatabaseSocket($GLOBALS['TYPO3_CONF_VARS']['DB']['socket']);
$database->setDatabaseName($GLOBALS['TYPO3_CONF_VARS']['DB']['database']);
$database->initialize();
$database->connectDB();
}
return $database;
......
......@@ -291,6 +291,7 @@ class DatabaseConnect extends AbstractStepAction {
protected function isConnectSuccessful() {
/** @var $databaseConnection \TYPO3\CMS\Core\Database\DatabaseConnection */
$databaseConnection = $this->objectManager->get('TYPO3\\CMS\\Core\\Database\\DatabaseConnection');
$databaseConnection->initialize();
if ($this->isDbalEnabled()) {
// Set additional connect information based on dbal driver. postgres for example needs
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment