Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
class BBJoomlaLanguage {
static public function whatIsIt(){
jimport('joomla.language.helper');
$languages = JLanguageHelper::getLanguages('lang_code');
$lang_code = JFactory::getLanguage()->getTag();
return $languages[$lang_code]->sef;
}
}
class BBProfileItemIdSetter extends cbPluginHandler {
public function onAfterUserProfileDisplay(){
$lang = BBJoomlaLanguage::whatIsIt();
if($lang === 'en'){
JRequest::setVar('Itemid', '514');
} else {
JRequest::setVar('Itemid', '532');
}
}
}
Please Log in to join the conversation.