[BUGFIX] Use correct path for content rendering template inclusion 80/45080/3
authorMarkus Klein <markus.klein@typo3.org>
Wed, 2 Dec 2015 01:48:39 +0000 (02:48 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Wed, 2 Dec 2015 06:18:32 +0000 (07:18 +0100)
Resolves: #70044
Releases: master
Change-Id: Ibc10dce2d445583eea879efe4d13219be8f547c8
Reviewed-on: https://review.typo3.org/45080
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php

index 1a26661..6aa25b9 100644 (file)
@@ -877,9 +877,8 @@ class TypoScriptParser
                 // load default TypoScript for content rendering templates like
                 // css_styled_content if those have been included through f.e.
                 // <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/static/setup.txt">
-                $filePointer = strtolower($filename);
-                if (StringUtility::beginsWith($filePointer, 'ext:')) {
-                    $filePointerPathParts = explode('/', substr($filePointer, 4));
+                if (StringUtility::beginsWith(strtolower($filename), 'ext:')) {
+                    $filePointerPathParts = explode('/', substr($filename, 4));
 
                     // remove file part, determine whether to load setup or constants
                     list($includeType, ) = explode('.', array_pop($filePointerPathParts));