10951.diff

Administrator Admin, 2009-06-10 03:25

Download (1.22 KB)

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
800 800
			}
801 801
				// The preview flag will be set if a backend user is in an offline workspace
802
			if (($GLOBALS['BE_USER']->user['workspace_preview'] || t3lib_div::_GP('ADMCMD_view') || $this->doWorkspacePreview()) && ($this->whichWorkspace()===-1 || $this->whichWorkspace()>0))	{
802
			if (($GLOBALS['BE_USER']->user['workspace_preview'] || $this->doWorkspacePreview()) && ($this->whichWorkspace()===-1 || $this->whichWorkspace()>0))	{
803 803
				$this->fePreview = 2;	// Will show special preview message.
804 804
			}
......
875 875
			// Initialize the page-select functions.
876 876
		$this->sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
877
		$this->sys_page->versioningPreview = ($this->fePreview===2 || intval($this->workspacePreview) || t3lib_div::_GP('ADMCMD_view')) ? TRUE : FALSE;
877
		$this->sys_page->versioningPreview = (intval($this->workspacePreview)) ? TRUE : FALSE;
878 878
		$this->sys_page->versioningWorkspaceId = $this->whichWorkspace();
879 879
		$this->sys_page->init($this->showHiddenPage);