Project

General

Profile

Bug #20335 » patch_20335.diff

Tobias Wollender, 2014-02-10 19:10

View differences:

typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
}
}
// The preview flag will be set if a backend user is in an offline workspace
if (($GLOBALS['BE_USER']->user['workspace_preview'] || GeneralUtility::_GP('ADMCMD_view') || $this->doWorkspacePreview()) && ($this->whichWorkspace() === -1 || $this->whichWorkspace() > 0)) {
if (($GLOBALS['BE_USER']->user['workspace_preview'] || $this->doWorkspacePreview()) && ($this->whichWorkspace()===-1 || $this->whichWorkspace()>0)) {
// Will show special preview message.
$this->fePreview = 2;
}
......
$GLOBALS['TT']->push('fetch_the_id initialize/', '');
// Initialize the page-select functions.
$this->sys_page = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
$this->sys_page->versioningPreview = $this->fePreview === 2 || (int)$this->workspacePreview || GeneralUtility::_GP('ADMCMD_view') ? TRUE : FALSE;
$this->sys_page->versioningPreview = (intval($this->workspacePreview)) ? TRUE : FALSE;
$this->sys_page->versioningWorkspaceId = $this->whichWorkspace();
$this->sys_page->init($this->showHiddenPage);
// Set the valid usergroups for FE
(5-5/5)