?
avatar apr456
apr456
13 Nov 2017

Steps to reproduce the issue

Set "Language selector for new visitors" to "Site language" in languagefilter plugin settings

Expected result

Site shows in default site language

Actual result

Joomla still uses language detection

System information (as much as possible)

Joomla 3.8.1

Patch:

--- a/plugins/system/languagefilter/languagefilter.php	2017-10-04 10:52:44.000000000 +0300
+++ b/plugins/system/languagefilter/languagefilter.php	2017-11-13 14:30:25.623546066 +0300
@@ -351,7 +351,7 @@
 		{
 			$lang_code = $this->getLanguageCookie();
 
-			if (!$lang_code && $this->params->get('detect_browser', 1))
+			if (!$lang_code && $this->params->get('detect_browser', 0) == 1)
 			{
 				$lang_code = JLanguageHelper::detectLanguage();
 			}
avatar apr456 apr456 - open - 13 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Nov 2017
avatar apr456 apr456 - change - 13 Nov 2017
The description was changed
avatar apr456 apr456 - edited - 13 Nov 2017
avatar infograf768
infograf768 - comment - 14 Nov 2017

I can't reproduce the issue, although the code could indeed be modified.

avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Nov 2017
Status New Discussion
avatar Quy
Quy - comment - 1 Dec 2017

I can't reproduce it either. The modified code performs the same logic as the old code.

avatar joomla-cms-bot joomla-cms-bot - change - 1 Dec 2017
Status Closed - Unconfirmed Report Closed
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 1 Dec 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Dec 2017
Status Discussion Closed - Unconfirmed Report
Closed_Date 0000-00-00 00:00:00 2017-12-01 08:26:27
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 1 Dec 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Dec 2017

closed as unconfirmed Report. Issue can always be reopened.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18561.

Add a Comment

Login with GitHub to post a comment