Language filter doesnt change language - Joomla! Forum - community, help and support


hello!

i found bug (or feature) in language filter plugin.

when change language removing lang tag in url, language doesn't change, url does.

the solution:

in constructor line 70 should add:

code: select all

if(empty($sef) || !isset(self::$sefs[$sef])){
   //there no lang in url
   //delete cookie if exists
   $conf = jfactory::getconfig();
   $cookie_domain    = $conf->get('config.cookie_domain', '');
   $cookie_path    = $conf->get('config.cookie_path', '/');
   setcookie(japplication::gethash('language'), '', 0, $cookie_path, $cookie_domain);
   jrequest::setvar('language', self::$default_lang);
}

welcome joomla forum!

thanks bug report + fix.

could please give more information server set-up (e.g. php version, webserver, sef enables, use of default .htaccess) other people can reproduce error + test fix?
what settings ("basic options") of "system - language filter" plugin?

and if it's bug (that other people can reproduce), please use official bug tracker report it:
http://joomlacode.org/gf/project/joomla ... er_id=8103
thanks!





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support