[TASK] Remove workspaceFrontendPreviewEnabled 75/49775/3
authorTomita Militaru <militarutomita@gmail.com>
Fri, 2 Sep 2016 15:11:37 +0000 (17:11 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 2 Sep 2016 22:35:50 +0000 (00:35 +0200)
Remove unused setting workspaceFrontendPreviewEnabled

Resolves: #77775
Releases: master
Change-Id: I216dc7f6d3b459edcfae06472e68f784720cef48
Reviewed-on: https://review.typo3.org/49775
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Classes/Controller/BackendController.php
typo3/sysext/backend/Resources/Public/JavaScript/backend.js
typo3/sysext/workspaces/Classes/Controller/PreviewController.php

index d27d0cf..1a66dd7 100644 (file)
@@ -582,7 +582,6 @@ class BackendController
             'uniqueID' => GeneralUtility::shortMD5(uniqid('', true)),
             'pageModule' => $pageModule,
             'inWorkspace' => $beUser->workspace !== 0,
-            'workspaceFrontendPreviewEnabled' => $beUser->user['workspace_preview'] ? 1 : 0,
             'moduleMenuWidth' => $this->menuWidth - 1,
             'topBarHeight' => isset($GLOBALS['TBE_STYLES']['dims']['topFrameH']) ? (int)$GLOBALS['TBE_STYLES']['dims']['topFrameH'] : 45,
             'showRefreshLoginPopup' => isset($GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup']) ? (int)$GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup'] : false,
index 7b859a6..afbc5ca 100644 (file)
@@ -159,8 +159,4 @@ function getModuleUrl(inUrl)        {       //
 
 
        // Used by Frameset Modules
-var currentSubScript = "";
-var currentSubNavScript = "";
-
-       // status of WS FE preview
-var WorkspaceFrontendPreviewEnabled = TYPO3.configuration.workspaceFrontendPreviewEnabled;
+var currentSubScript = "";
\ No newline at end of file
index 13fbbfd..6a48755 100644 (file)
@@ -238,7 +238,6 @@ class PreviewController extends AbstractController
             'uniqueID' => GeneralUtility::shortMD5(uniqid('', true)),
             'pageModule' => $pageModule,
             'inWorkspace' => $backendUser->workspace !== 0,
-            'workspaceFrontendPreviewEnabled' => $backendUser->user['workspace_preview'] ? 1 : 0,
             'topBarHeight' => isset($GLOBALS['TBE_STYLES']['dims']['topFrameH']) ? (int)$GLOBALS['TBE_STYLES']['dims']['topFrameH'] : 30,
             'showRefreshLoginPopup' => isset($GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup']) ? (int)$GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup'] : false,
             'debugInWindow' => $backendUser->uc['debugInWindow'] ? 1 : 0,