Skip to content

Commit

Permalink
Merge pull request #89 from maikschneider/language-fix
Browse files Browse the repository at this point in the history
fix: wrong language code in audio captcha
  • Loading branch information
maikschneider authored Dec 4, 2024
2 parents 2afc713 + db1023c commit f6ac50b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Middleware/Audio.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function process(
return $handler->handle($request);
}

$languageCode = $request->getAttribute('language')?->getLocale()->getCountryCode() ?? '';
$languageCode = $request->getAttribute('language')?->getLocale()->getLanguageCode() ?? '';
$body = $request->getParsedBody();

$ts = $this->configurationManager->getConfiguration(
Expand Down
1 change: 1 addition & 0 deletions php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* This file is part of the TYPO3 CMS project.
*
Expand Down

0 comments on commit f6ac50b

Please sign in to comment.