How do you get the language from a session in Joomla?

Posted by Moak on Stack Overflow See other posts from Stack Overflow or by Moak
Published on 2010-03-13T15:48:44Z Indexed on 2010/03/13 15:55 UTC
Read the original article Hit count: 218

Filed under:
|
|

I have some code that sets the lang var to the site default language.

$lg = &JFactory::getLanguage();
$lg = explode('-',$lg->_default);
$dlg = $lg[0];
if(!JRequest::getWord('lang', false ))
    JRequest::setVar('lang', $dlg );

however before setting it to $dlg I would like to find out if the language is stored in the user information or session.

Can someone tell me how to check the session for language information?

© Stack Overflow or respective owner

Related posts about joomla

Related posts about joomla1.5