Bug #62129 ยป typo3_src-6.2_preview_url_scheme.patch
typo3/sysext/backend/Classes/Utility/BackendUtility.php 2014-10-09 16:04:54.000000000 +0200 | ||
---|---|---|
$sysPage = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
|
||
$page = (array) $sysPage->getPage($pageId);
|
||
$protocol = 'http';
|
||
if ($page['url_scheme'] == \TYPO3\CMS\Core\Utility\HttpUtility::SCHEME_HTTPS || $page['url_scheme'] == 0 && GeneralUtility::getIndpEnv('TYPO3_SSL')) {
|
||
$protocol = 'https';
|
||
}
|
||
$previewUrlSchemeConfig = $GLOBALS['BE_USER']->getTSConfig('TCEMAIN.previewUrlScheme', self::getPagesTSconfig($pageId));
|
||
if ($previewUrlSchemeConfig['value']) {
|
||
$protocol = $previewUrlSchemeConfig['value'];
|
||
} elseif ($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'];
|