Bug #29208 » 29208_ws_no_default_language.diff
Classes/Service/Workspaces.php | ||
---|---|---|
protected function selectAllVersionsFromPages($table, $pageList, $wsid, $filter, $stage) {
|
||
$fields = 'A.uid, A.t3ver_oid, A.t3ver_stage, ' . ($table==='pages' ? ' A.t3ver_swapmode,' : '') . 'B.pid AS wspid, B.pid AS livepid';
|
||
if (t3lib_BEfunc::isTableLocalizable($table)) $fields .= ', A.' . $GLOBALS['TCA'][$table]['ctrl']['languageField'];
|
||
$from = $table . ' A,' . $table . ' B';
|
||
// Table A is the offline version and pid=-1 defines offline
|
||
... | ... | |
if (t3lib_BEfunc::isTableLocalizable($table)) {
|
||
$languageUid = $record[$GLOBALS['TCA'][$table]['ctrl']['languageField']];
|
||
} else {
|
||
return TRUE;
|
||
}
|
||
return $GLOBALS['BE_USER']->checkLanguageAccess($languageUid);
|
- « Previous
- 1
- 2
- 3
- Next »