Feature #24051 » tslib_content_PHP_SCRIPT_v3.diff
typo3/sysext/cms/tslib/content/class.tslib_content_phpscript.php (revision ) | ||
---|---|---|
* @return string Output
|
||
*/
|
||
public function render($conf = array()) {
|
||
$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)) {
|
||
// Added 31-12-00: Make backup...
|
||
... | ... | |
$this->cObj->data = $this->cObj->oldData;
|
||
}
|
||
}
|
||
|
||
if (isset($conf['stdWrap.'])) {
|
||
$content = $this->cObj->stdWrap($content, $conf['stdWrap.']);
|
||
}
|
||
|
||
return $content;
|
||
}
|
||
|
- « Previous
- 1
- 2
- Next »