function shInsertIsoCodeInUrl($compName, $shLang = null) { // V 1.2.4.m $sefConfig = & Sh404sefFactory::getConfig(); $shLang = empty($shLang) ? Sh404sefFactory::getPageInfo()->shMosConfig_locale : $shLang; // V 1.2.4.q if (empty($compName) || !$sefConfig->shInsertLanguageCode // if no compname or global param is off || $sefConfig->shLangInsertCodeList[$shLang] == 2 // set to not insertcode || ( $sefConfig->shLangInsertCodeList[$shLang] == 0 && shGetDefaultlang() == $shLang) // or set to default ) // but this is default language return false; $compName = str_replace('com_', '', $compName); return !in_array($compName, $sefConfig->notInsertIsoCodeList); }
function shInsertIsoCodeInUrl($compName, $shLang = null) { // V 1.2.4.m global $shMosConfig_lang, $shMosConfig_locale; $sefConfig =& shRouter::shGetConfig(); $shLang = empty($shLang) ? $shMosConfig_locale : $shLang; // V 1.2.4.q if (empty($compName) || !$sefConfig->shInsertLanguageCode || $sefConfig->shLangInsertCodeList[$shLang] == 2 || $sefConfig->shLangInsertCodeList[$shLang] == 0 && shGetDefaultlang() == $shLang) { // but this is default language return false; } $compName = str_replace('com_', '', $compName); return !in_array($compName, $sefConfig->notInsertIsoCodeList); }
function shInsertIsoCodeInUrl($compName, $shLang = null) { // V 1.2.4.m $sefConfig =& Sh404sefFactory::getConfig(); $shLang = empty($shLang) ? Sh404sefFactory::getPageInfo()->currentLanguageTag : $shLang; // V 1.2.4.q if (empty($compName) || !$sefConfig->shInsertLanguageCode || $sefConfig->shLangInsertCodeList[$shLang] == 2 || $sefConfig->shLangInsertCodeList[$shLang] == 0 && shGetDefaultlang() == $shLang) { // but this is default language return false; } $compName = str_replace('com_', '', $compName); return !in_array($compName, $sefConfig->notInsertIsoCodeList); }