Revert "[FEATURE] Add option to set an alternative domain for preview" 29/24729/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 14 Oct 2013 10:23:45 +0000 (12:23 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 14 Oct 2013 10:23:59 +0000 (12:23 +0200)
Errors in commit-msg. Patch itself okay. Will repush.

This reverts commit 989dc485492927daeeebab67200f43df49bd1d17

Change-Id: I549dfdf33dd75d8a2dcbf1d09132951d8b8d86eb
Reviewed-on: https://review.typo3.org/24729
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/backend/Classes/Utility/BackendUtility.php

index fee13ba..38bcb57 100644 (file)
@@ -2661,12 +2661,7 @@ class BackendUtility {
                        if ($page['url_scheme'] == \TYPO3\CMS\Core\Utility\HttpUtility::SCHEME_HTTPS || $page['url_scheme'] == 0 && GeneralUtility::getIndpEnv('TYPO3_SSL')) {
                                $protocol = 'https';
                        }
-                       $previewDomainConfig = $GLOBALS['BE_USER']->getTSConfig('TCEMAIN.previewDomain', self::getPagesTSconfig($pageId));
-                       if ($previewDomainConfig['value']) {
-                               $domainName = $previewDomainConfig['value'];
-                       } else {
-                               $domainName = self::firstDomainRecord($rootLine);
-                       }
+                       $domainName = self::firstDomainRecord($rootLine);
                        if ($domainName) {
                                $domain = $domainName;
                        } else {