nerijus
6/13/2013 - 11:34 AM

Showing default language if there's no translation

Showing default language if there's no translation

// if content is available show the content in the requested language
if(!empty($content[$lang])) {
return $content[$lang];
}else{
return $content[$q_config['default_language']];
}