diff --git a/app/controllers/accessibility/forms.php b/app/controllers/accessibility/forms.php index 7ee795e71e148ee47c19ca53b7b968862d43fbeb..6217b91c53eac272593c77d4fc726adf5c2bd799 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.