diff --git a/phpmyfaq/src/phpMyFAQ/Application.php b/phpmyfaq/src/phpMyFAQ/Application.php index efc8710d1b..e0cfa61428 100644 --- a/phpmyfaq/src/phpMyFAQ/Application.php +++ b/phpmyfaq/src/phpMyFAQ/Application.php @@ -54,7 +54,10 @@ private function setLanguage(): string if (!is_null($this->container)) { $configuration = $this->container->get('phpmyfaq.configuration'); $language = $this->container->get('phpmyfaq.language'); - $currentLanguage = $language->setLanguageByAcceptLanguage(); + $currentLanguage = $language->setLanguage( + $configuration->get('main.languageDetection'), + $configuration->get('main.language') + ); require sprintf('%s/language_en.php', PMF_TRANSLATION_DIR); if (Language::isASupportedLanguage($currentLanguage)) {