We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5175962 commit 4b4a600Copy full SHA for 4b4a600
1 file changed
Service/Intuition.php
@@ -39,7 +39,7 @@ public static function serviceFactory(
39
if ($currentRequest->hasSession()) {
40
$session = $currentRequest->getSession();
41
$sessionLang = $session->get('lang');
42
- if (!empty($sessionLang)) {
+ if (!$queryLang && !empty($sessionLang)) {
43
$useLang = $sessionLang;
44
}
45
// Save the language to the session.
@@ -50,7 +50,7 @@ public static function serviceFactory(
50
51
52
// Set up Intuition, using the selected language.
53
- $intuition = new static(['domain' => $domain]);
+ $intuition = new static(['domain' => $domain, 'param' => false]);
54
$intuition->registerDomain($domain, $projectDir.'/i18n');
55
$intuition->registerDomain('toolforge', dirname(__DIR__).'/Resources/i18n');
56
$intuition->setLang(strtolower($useLang));
0 commit comments