|| $table === 'pages_language_overlay')
&& $table !== 'pages') {
if ($this->enableLogging) {
- $this->newlog('Localization failed; "languageField" and "transOrigPointerField" must be defined for the table!', 1);
+ $this->newlog('Localization failed; "languageField" and "transOrigPointerField" must be defined for the table ' . $table, 1);
}
return false;
}
if (!$this->doesRecordExist($table, $uid, 'show')) {
if ($this->enableLogging) {
- $this->newlog('Attempt to localize record without permission', 1);
+ $this->newlog('Attempt to localize record ' . $table . ':' . $uid . ' without permission.', 1);
}
return false;
}
$row = BackendUtility::getRecordWSOL($table, $uid);
if (!is_array($row)) {
if ($this->enableLogging) {
- $this->newlog('Attempt to localize record that did not exist!', 1);
+ $this->newlog('Attempt to localize record ' . $table . ':' . $uid . ' that did not exist!', 1);
}
return false;
}
);
if ((int)$localizationParentRecord[$GLOBALS['TCA'][$table]['ctrl']['languageField']] !== 0) {
if ($this->enableLogging) {
- $this->newlog('Localization failed; Source record contained a reference to an original record that is not a default record (which is strange)!', 1);
+ $this->newlog('Localization failed; Source record ' . $table . ':' . $localizationParentRecord['uid'] . ' contained a reference to an original record that is not a default record (which is strange)!', 1);
}
return false;
}
&& (int)$row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] === 0
&& $table !== 'pages') {
if ($this->enableLogging) {
- $this->newlog('Localization failed; Source record contained a reference to an original default record but is a default record itself (which is strange)!', 1);
+ $this->newlog('Localization failed; Source record ' . $table . ':' . $row['uid'] . ' contained a reference to an original default record but is a default record itself (which is strange)!', 1);
}
return false;
}
if (!$pass) {
if ($this->enableLogging) {
- $this->newlog('Localization failed; There already was a localization for this language of the record!', 1);
+ $this->newlog('Localization failed; There already was a localization for this language of the record ' . $table . ':' . $uid . '!', 1);
}
return false;
}