From f692e16c5b0ac98d7897a3c2bc23dbbf6f53daa9 Mon Sep 17 00:00:00 2001 From: Moritz Strohm <strohm@data-quest.de> Date: Tue, 23 May 2023 12:03:32 +0200 Subject: [PATCH] fixed barrier reporting for anonymous users, fixes #2655 --- app/controllers/accessibility/forms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/accessibility/forms.php b/app/controllers/accessibility/forms.php index 7ee795e71e1..6217b91c53e 100644 --- a/app/controllers/accessibility/forms.php +++ b/app/controllers/accessibility/forms.php @@ -126,7 +126,7 @@ class Accessibility_FormsController extends StudipController //Get the sender and their language: $sender = User::findCurrent(); //Default to the system default language: - $lang = explode('_', $GLOBALS['DEFAULT_LANGUAGE'])[0]; + $lang = explode('_', Config::get()->DEFAULT_LANGUAGE ?? 'de_DE')[0]; if ($sender) { //Use the senders language since the choices in the form //are in their language as well. -- GitLab