Project

General

Profile

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 )
use TYPO3\CMS\Core\Utility\HttpUtility;
use TYPO3\CMS\Core\Utility\MathUtility;
use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication;
use TYPO3\CMS\Frontend\Configuration\TypoScript\ConditionMatching\ConditionMatcher;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
use TYPO3\CMS\Frontend\Http\UrlHandlerInterface;
use TYPO3\CMS\Frontend\Page\CacheHashCalculator;
......
$this->pagesTSconfig = $contentHashCache->get($identifier);
if (!is_array($this->pagesTSconfig)) {
$parseObj = GeneralUtility::makeInstance(TypoScriptParser::class);
$parseObj->parse($userTS);
$matchObj = GeneralUtility::makeInstance(ConditionMatcher::class);
$matchObj->setRootline($this->rootLine);
$parseObj->parse($userTS, $matchObj);
$this->pagesTSconfig = $parseObj->setup;
$contentHashCache->set($identifier, $this->pagesTSconfig, ['PAGES_TSconfig'], 0);
}
(2-2/2)