Bug #84692 » BUGFIX_Parse_page_TSconfig_in_frontend_with_condition_matcher.patch

Marc Bastian Heinrichs, 2018-04-12 09:24

View differences:

typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php (revision )
45 45
use TYPO3\CMS\Core\Utility\HttpUtility;
46 46
use TYPO3\CMS\Core\Utility\MathUtility;
47 47
use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication;
48
use TYPO3\CMS\Frontend\Configuration\TypoScript\ConditionMatching\ConditionMatcher;
48 49
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
49 50
use TYPO3\CMS\Frontend\Http\UrlHandlerInterface;
50 51
use TYPO3\CMS\Frontend\Page\CacheHashCalculator;
......
4172 4173
            $this->pagesTSconfig = $contentHashCache->get($identifier);
4173 4174
            if (!is_array($this->pagesTSconfig)) {
4174 4175
                $parseObj = GeneralUtility::makeInstance(TypoScriptParser::class);
4175
                $parseObj->parse($userTS);
4176
                $matchObj = GeneralUtility::makeInstance(ConditionMatcher::class);
4177
                $matchObj->setRootline($this->rootLine);
4178
                $parseObj->parse($userTS, $matchObj);
4176 4179
                $this->pagesTSconfig = $parseObj->setup;
4177 4180
                $contentHashCache->set($identifier, $this->pagesTSconfig, ['PAGES_TSconfig'], 0);
4178 4181
            }
(2-2/2)