Fixed bug #11633: Enable Frontend Preview does not work until switched (thanks to...
authorSteffen Kamper <info@sk-typo3.de>
Fri, 6 Nov 2009 12:18:40 +0000 (12:18 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Fri, 6 Nov 2009 12:18:40 +0000 (12:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6355 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/backend.php

index 19f4f63..f4c06c5 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
 
 2009-11-06  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #11633: Enable Frontend Preview does not work until switched (thanks to Fabrizio Branca)
        * Fixed bug #12469: Pagerenderer miss headerData and footerData in hooks
        * Fixed bug #12437: Recycler produces some scroll bars + visual cleanup + js fixes
        * Fixed bug #12368: Context menu of page tree does not work anymore
index 0a5f978..f035946 100644 (file)
@@ -372,7 +372,7 @@ class TYPO3backend {
                'TYPO3_mainDir' => TYPO3_mainDir,
                'pageModule' => $pageModule,
                'condensedMode' => $GLOBALS['BE_USER']->uc['condensedMode'] ? 1 : 0 ,
-               'workspaceFrontendPreviewEnabled' => (($GLOBALS['BE_USER']->workspace != 0 && !$GLOBALS['BE_USER']->user['workspace_preview']) ? 'false' : 'true'),
+               'workspaceFrontendPreviewEnabled' => $GLOBALS['BE_USER']->workspace != 0 && !$GLOBALS['BE_USER']->user['workspace_preview'] ? 0 : 1,
                'veriCode' => $GLOBALS['BE_USER']->veriCode(),
                'denyFileTypes' => PHP_EXTENSIONS_DEFAULT,
                'showRefreshLoginPopup' => isset($GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup']) ? intval($GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup']) : FALSE,