Project

General

Profile

Bug #29208 » 29208_ws_no_default_language.diff

v3 - Jozef Spisiak, 2011-11-09 11:10

View differences:

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);
(3-3/3)