Project

General

Profile

Feature #24052 » tslib_content_PHP_SCRIPT_INT_EXT_v2.diff

Administrator Admin, 2010-11-14 18:34

View differences:

typo3/sysext/cms/tslib/content/class.tslib_content_phpscript_internal.php (revision )
* @return string Output
*/
public function render($conf = array(), $ext) {
$incFile = $GLOBALS['TSFE']->tmpl->getFileName($conf['file']);
$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();
......
$GLOBALS['TSFE']->config[$ext . 'incScript'][$substKey]['data'] = $this->cObj->data;
}
}
if (isset($conf['stdWrap.'])) {
$content = $this->cObj->stdWrap($content, $conf['stdWrap.']);
}
return $content;
}
(2-2/3)