diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-28 07:55:24 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-28 07:55:24 +0000 |
| commit | fe2b584cb79ba8a2c642be085cacdd82d526df25 (patch) | |
| tree | 875665187b3f3c9e26bc0056bf9d658c8b724d29 /lib/bootstrap.php | |
| parent | 4e798558115a71c61d9a5f77a909356aeb0873b6 (diff) | |
add debug bar, fixes #4220
Closes #4220
Merge request studip/studip!3049
Diffstat (limited to 'lib/bootstrap.php')
| -rw-r--r-- | lib/bootstrap.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/bootstrap.php b/lib/bootstrap.php index e9c9bb5..8c618ff 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -129,13 +129,10 @@ $GLOBALS['template_factory'] = new Flexi\Factory("{$STUDIP_BASE_PATH}/templates" // set default pdo connection try { - DBManager::getInstance() - ->setConnection('studip', - 'mysql:host=' . $GLOBALS['DB_STUDIP_HOST'] . - ';dbname=' . $GLOBALS['DB_STUDIP_DATABASE'] . - ';charset=utf8mb4', - $GLOBALS['DB_STUDIP_USER'], - $GLOBALS['DB_STUDIP_PASSWORD']); + DBManager::getInstance()->setConnection( + 'studip', + app(StudipPDO::class) + ); } catch (PDOException $exception) { if (Studip\ENV === 'development') { throw $exception; |
