Bug #21869 » 13068.diff
t3lib/class.t3lib_tceforms.php (working copy) | ||
---|---|---|
}
|
||
$languages = $this->getAvailableLanguages();
|
||
// Remove disabled languages
|
||
$modSharedTSconfig = t3lib_BEfunc::getModTSconfig($row['pid'], 'mod.SHARED');
|
||
$disableLanguages = isset($modSharedTSconfig['properties']['disableLanguages']) ? t3lib_div::trimExplode(',', $modSharedTSconfig['properties']['disableLanguages'], 1) : array();
|
||
if (count($languages) && count($disableLanguages)) {
|
||
foreach ($disableLanguages as $lang) {
|
||
if ($lang != 0 && isset($languages[$lang])) {
|
||
unset($languages[$lang]);
|
||
}
|
||
}
|
||
}
|
||
foreach($languages as $lInfo) {
|
||
if ($GLOBALS['BE_USER']->checkLanguageAccess($lInfo['uid']) && (!$checkPageLanguageOverlay || $lInfo['uid']<=0 || is_array($pageOverlays[$lInfo['uid']]))) {
|
||
$editData['meta']['currentLangId'][] = $lInfo['ISOcode'];
|