[BUGFIX] ContentObjectRenderer still calls t3lib_div 76/25276/2
authorFrancois Suter <francois@typo3.org>
Mon, 11 Nov 2013 17:51:36 +0000 (18:51 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 11 Nov 2013 18:22:27 +0000 (19:22 +0100)
When trying to determine which scheme to use for property
forceAbsoluteUrl, class ContentObjectRenderer calls
t3lib_div::getIndpEnv('TYPO3_SSL').
This must be replaced with GeneralUtility.

Resolves: #53530
Releases: 6.2
Change-Id: I7b7de9373fbbee3f981a28065a12d159eb37ca26
Reviewed-on: https://review.typo3.org/25276
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

index 8756618..f92fd43 100644 (file)
@@ -6093,7 +6093,7 @@ class ContentObjectRenderer {
                                                                $absoluteUrlScheme = $conf['forceAbsoluteUrl.']['scheme'];
                                                        } elseif ($page['url_scheme'] > 0) {
                                                                $absoluteUrlScheme = (int) $page['url_scheme'] === \TYPO3\CMS\Core\Utility\HttpUtility::SCHEME_HTTP ? 'http' : 'https';
-                                                       } elseif (t3lib_div::getIndpEnv('TYPO3_SSL')) {
+                                                       } elseif (GeneralUtility::getIndpEnv('TYPO3_SSL')) {
                                                                $absoluteUrlScheme = 'https';
                                                        }
                                                        // If no domain records are defined, use current domain: