Project

General

Profile

Feature #14850 » class.t3lib_tcemain.php.patch

Administrator Admin, 2005-07-22 20:28

View differences:

t3lib/class.t3lib_tcemain.php (working copy)
// Walk through the items, copy them and remember the new id:
foreach ($dbAnalysis->itemArray as $k => $v) {
// If language is set, this isn't a copy action but a localization of our parent/ancestor:
if ($language>0) {
// If language is set and differs from original record, this isn't a copy action but a localization of our parent/ancestor:
if ($language>0 && isset($TCA[$table]['ctrl']['languageField']) && $language != $row[$TCA[$table]['ctrl']['languageField']]) {
// If children should be localized when the parent gets localized the first time, just do it:
if ($localizationMode!=false && isset($conf['behaviour']['localizeChildrenAtParentLocalization']) && $conf['behaviour']['localizeChildrenAtParentLocalization']) {
$newId = $this->localize($v['table'], $v['id'], $language);
(1-1/2)