Fixed bug #5611: Frontend preview and simulate time is buggy
authorMichael Stucki <michael.stucki@typo3.org>
Tue, 11 Nov 2008 02:45:54 +0000 (02:45 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Tue, 11 Nov 2008 02:45:54 +0000 (02:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4440 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index c77d311..5243289 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-11  Michael Stucki  <michael@typo3.org>
+
+       * Fixed bug #5611: Frontend preview and simulate time is buggy
+
 2008-11-04  Ingo Renner  <ingo@typo3.org>
 
        * Fixed bug #9681: the Wrap for forgotMessage in the subpart ###TEMPLATE_FORGOT### does not work (credits Steffen Kamper)
index a4216bf..a46c0a5 100755 (executable)
@@ -894,7 +894,7 @@ require_once (PATH_t3lib.'class.t3lib_lock.php');
 
                        // Initialize the page-select functions.
                $this->sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
-               $this->sys_page->versioningPreview = $this->fePreview ? TRUE : FALSE;
+               $this->sys_page->versioningPreview = ($this->fePreview===2 || intval($this->workspacePreview) || t3lib_div::_GP('ADMCMD_view')) ? TRUE : FALSE;
                $this->sys_page->versioningWorkspaceId = $this->whichWorkspace();
                $this->sys_page->init($this->showHiddenPage);