Skip to content
Snippets Groups Projects
Commit b141343b authored by Philipp Schüttlöffel's avatar Philipp Schüttlöffel Committed by Jan-Hendrik Willms
Browse files

Resolve "Meldung bei fehlender Datenbankverbindung anpassen"

Closes #5012

Merge request studip/studip!3767
parent a0a98156
Branches
No related tags found
No related merge requests found
...@@ -132,13 +132,13 @@ try { ...@@ -132,13 +132,13 @@ try {
'studip', 'studip',
app(StudipPDO::class) app(StudipPDO::class)
); );
} catch (PDOException $exception) { } catch (\PDOException $exception) {
if (Studip\ENV === 'development') { if (Studip\ENV === 'development') {
throw $exception; throw $exception;
} else { } else {
error_log($exception);
header('HTTP/1.1 500 Internal Server Error'); header('HTTP/1.1 500 Internal Server Error');
die(sprintf('database connection %s failed', 'mysql:host=' . $GLOBALS['DB_STUDIP_HOST'] . die(_('Momentan ist das Stud.IP System nicht erreichbar, bitte versuchen Sie es später noch einmal.'));
';dbname=' . $GLOBALS['DB_STUDIP_DATABASE']));
} }
} }
// set slave connection // set slave connection
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment