Project

General

Profile

Bug #29208 » 29208_ws_no_default_language.diff

v2 - Robert Heel, 2011-10-28 14:47

View differences:

typo3_src-4.5.6/typo3/sysext/workspaces/Classes/Service/Workspaces.php 2011-10-19 14:36:37.000000000 +0000
*/
protected function selectAllVersionsFromPages($table, $pageList, $wsid, $filter, $stage) {
$fields = 'A.uid, A.t3ver_oid,' . ($table==='pages' ? ' A.t3ver_swapmode,' : '') . 'B.pid AS wspid, B.pid AS livepid';
$fields = 'A.*, B.pid AS wspid, B.pid AS livepid';
$from = $table . ' A,' . $table . ' B';
// Table A is the offline version and pid=-1 defines offline
......
protected function isLanguageAccessibleForCurrentUser($table, array $record) {
$languageUid = 0;
if (t3lib_BEfunc::isTableLocalizable($table)) {
$languageUid = $record[$GLOBALS['TCA'][$table]['ctrl']['languageField']];
if ($table == 'pages_language_overlay') {
$languageUid = $record['sys_language_uid'];
} else {
if (t3lib_BEfunc::isTableLocalizable($table)) {
$languageUid = $record[$GLOBALS['TCA'][$table]['ctrl']['languageField']];
}
}
return $GLOBALS['BE_USER']->checkLanguageAccess($languageUid);
(2-2/3)