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