Skip to content
Snippets Groups Projects
Commit d7f72ef6 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fixed barrier reporting for anonymous users, fixes #2655

parent bc172729
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,7 @@ class Accessibility_FormsController extends StudipController ...@@ -126,7 +126,7 @@ class Accessibility_FormsController extends StudipController
//Get the sender and their language: //Get the sender and their language:
$sender = User::findCurrent(); $sender = User::findCurrent();
//Default to the system default language: //Default to the system default language:
$lang = explode('_', $GLOBALS['DEFAULT_LANGUAGE'])[0]; $lang = explode('_', Config::get()->DEFAULT_LANGUAGE ?? 'de_DE')[0];
if ($sender) { if ($sender) {
//Use the senders language since the choices in the form //Use the senders language since the choices in the form
//are in their language as well. //are in their language as well.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment