10951_r7462.diff

Administrator Admin, 2010-05-17 21:57

Download (1.25 KB)

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
833 833
			}
834 834

  
835 835
				// The preview flag will be set if a backend user is in an offline workspace
836
			if (($GLOBALS['BE_USER']->user['workspace_preview'] || t3lib_div::_GP('ADMCMD_view') || $this->doWorkspacePreview()) && ($this->whichWorkspace()===-1 || $this->whichWorkspace()>0))	{
836
			if (($GLOBALS['BE_USER']->user['workspace_preview'] || $this->doWorkspacePreview()) && ($this->whichWorkspace()===-1 || $this->whichWorkspace()>0))	{
837 837
				$this->fePreview = 2;	// Will show special preview message.
838 838
			}
839 839

  
......
911 911

  
912 912
			// Initialize the page-select functions.
913 913
		$this->sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
914
		$this->sys_page->versioningPreview = ($this->fePreview===2 || intval($this->workspacePreview) || t3lib_div::_GP('ADMCMD_view')) ? TRUE : FALSE;
914
		$this->sys_page->versioningPreview = (intval($this->workspacePreview)) ? TRUE : FALSE;
915 915
		$this->sys_page->versioningWorkspaceId = $this->whichWorkspace();
916 916
		$this->sys_page->init($this->showHiddenPage);
917 917