Added feature #5613: Enable/integrate conditions in Page TSconfig
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_tsparser_ext.php
index aeb0f7b..4ff84f8 100644 (file)
@@ -292,8 +292,9 @@ class t3lib_tsparser_ext extends t3lib_TStemplate   {
                $constants->setup = $this->const;
                $constants->setup = $this->mergeConstantsFromPageTSconfig($constants->setup);
 
-               $matchObj = t3lib_div::makeInstance('t3lib_matchCondition');
-               $matchObj->matchAll=1;          // Matches ALL conditions in TypoScript
+               /* @var $matchObj t3lib_matchCondition_frontend */
+               $matchObj = t3lib_div::makeInstance('t3lib_matchCondition_frontend');
+               $matchObj->setSimulateMatchResult(true);        // Matches ALL conditions in TypoScript
 
                $c=0;
                $cc=count($this->constants);