Index: typo3/sysext/cms/tslib/class.tslib_content.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_content.php (revision 9883) +++ typo3/sysext/cms/tslib/class.tslib_content.php (revision ) @@ -1127,7 +1127,8 @@ */ function PHP_SCRIPT($conf, $ext = '') { if ($ext === 'INT' || $ext === 'EXT') { - return $this->getContentObject('PHP_SCRIPT_INT')->render($conf, $ext); + $conf['scriptSuffix'] = $ext; + return $this->getContentObject('PHP_SCRIPT_INT')->render($conf); } else { return $this->getContentObject('PHP_SCRIPT')->render($conf); } Index: typo3/sysext/cms/tslib/content/class.tslib_content_phpscriptinternal.php =================================================================== --- typo3/sysext/cms/tslib/content/class.tslib_content_phpscriptinternal.php (revision 9758) +++ typo3/sysext/cms/tslib/content/class.tslib_content_phpscriptinternal.php (revision ) @@ -41,8 +41,15 @@ * @param array Array of TypoScript properties * @return string Output */ - public function render($conf = array(), $ext) { - $incFile = $GLOBALS['TSFE']->tmpl->getFileName($conf['file']); + public function render($conf = array()) { + $ext = $conf['scriptSuffix']; + unset($conf['scriptSuffix']); + + $file = isset($conf['file.']) + ? $this->cObj->stdWrap($conf['file'], $conf['file.']) + : $conf['file']; + + $incFile = $GLOBALS['TSFE']->tmpl->getFileName($file); $content = ''; if ($incFile && $GLOBALS['TSFE']->checkFileInclude($incFile)) { $substKey = $ext . '_SCRIPT.' . $GLOBALS['TSFE']->uniqueHash(); @@ -56,6 +63,11 @@ $GLOBALS['TSFE']->config[$ext . 'incScript'][$substKey]['data'] = $this->cObj->data; } } + + if (isset($conf['stdWrap.'])) { + $content = $this->cObj->stdWrap($content, $conf['stdWrap.']); + } + return $content; }