Project

General

Profile

Feature #24052 » #16386_v3.patch

Administrator Admin, 2010-12-27 17:29

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (revision )
*/
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);
}
typo3/sysext/cms/tslib/content/class.tslib_content_phpscriptinternal.php (revision )
* @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();
......
$GLOBALS['TSFE']->config[$ext . 'incScript'][$substKey]['data'] = $this->cObj->data;
}
}
if (isset($conf['stdWrap.'])) {
$content = $this->cObj->stdWrap($content, $conf['stdWrap.']);
}
return $content;
}
(3-3/3)