patch_20335.diff

Tobias Wollender, 2014-02-10 19:10

Download (1.55 KB)

View differences:

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