Feature #19163 ยป 0009065.patch
typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) | ||
---|---|---|
$GLOBALS['TT']->push('Include '.$INTiS_config[$INTiS_key]['file'],'');
|
||
$incContent='';
|
||
if (is_array($INTiS_config[$INTiS_key])) {
|
||
/* @var $INTiS_cObj tslib_cObj */
|
||
$INTiS_cObj = unserialize($INTiS_config[$INTiS_key]['cObj']);
|
||
/* @var $INTiS_cObj tslib_cObj */
|
||
$INTiS_cObj->INT_include=1;
|
||
switch($INTiS_config[$INTiS_key]['type']) {
|
||
case 'SCRIPT':
|
typo3/sysext/cms/tslib/class.tslib_content.php (working copy) | ||
---|---|---|
*/
|
||
function COBJ_ARRAY($conf,$ext='') {
|
||
$content='';
|
||
$ext = $this->adjustObjectExtType($ext);
|
||
switch($ext) {
|
||
case 'INT':
|
||
$substKey = $ext.'_SCRIPT.'.$GLOBALS['TSFE']->uniqueHash();
|
||
... | ... | |
*/
|
||
function USER($conf,$ext='') {
|
||
$content='';
|
||
$ext = $this->adjustObjectExtType($ext);
|
||
switch($ext) {
|
||
case 'INT':
|
||
$substKey = $ext.'_SCRIPT.'.$GLOBALS['TSFE']->uniqueHash();
|
||
... | ... | |
$incFile = $GLOBALS['TSFE']->tmpl->getFileName($conf['file']);
|
||
$content='';
|
||
if ($incFile && $GLOBALS['TSFE']->checkFileInclude($incFile)) {
|
||
$ext = $this->adjustObjectExtType($ext);
|
||
switch($ext) {
|
||
case 'INT':
|
||
case 'EXT':
|
||
... | ... | |
($TCA[$table]['ctrl']['enablecolumns']['endtime'] && $row[$TCA[$table]['ctrl']['enablecolumns']['endtime']] && $row[$TCA[$table]['ctrl']['enablecolumns']['endtime']]<time())
|
||
) return true;
|
||
}
|
||
/**
|
||
* Modifies the extension of a object, e.g. "INT" at "USER_INT" or "COA_INT"
|
||
* and removes it completely if a *_INT object is nested in another *_INT object.
|
||
*
|
||
* @param string $ext
|
||
* @return string
|
||
*/
|
||
protected function adjustObjectExtType($ext) {
|
||
if ($ext == 'INT' && $this->INT_include) {
|
||
$ext = '';
|
||
}
|
||
return $ext;
|
||
}
|
||
}
|
||