diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-12-16 09:27:31 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-16 11:13:09 +0100 |
| commit | 7c767d9cb86bbe316bd2a2ed41c29386987dde17 (patch) | |
| tree | f172fad2d51bd06cfb4787b469785228429d7eb9 /lib/bootstrap.php | |
| parent | cf33e0608e633a9aa24e5d99c74ae7792f662283 (diff) | |
Resolve "Meldung bei fehlender Datenbankverbindung anpassen"
Closes #5012
Merge request studip/studip!3767
Diffstat (limited to 'lib/bootstrap.php')
| -rw-r--r-- | lib/bootstrap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bootstrap.php b/lib/bootstrap.php index feb3df0..54b7521 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -127,9 +127,9 @@ try { 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 |
